mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-20 11:59:54 +00:00
13 lines
276 B
Plaintext
13 lines
276 B
Plaintext
//@ 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.into(); //~ ERROR mismatched types
|
|
}
|