blob: f523581e2da19b0bd29d5a169f1e99599ce8b1c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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
}
|