Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
parser
/
recover
/
recover-parens-around-match-arm-head.rs
blob: d208bc7150d6ff7b39ac8161a89c1f5aa8a51fc3 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn
main
()
{
let
val
=
42
;
let
x
=
match
val
{
(
0
if
true
)
=>
{
//~^ ERROR unexpected parentheses surrounding `match` arm pattern
42u8
}
_
=>
0u8
,
};
let
_y
:
u32
=
x
;
//~ ERROR mismatched types
}