2023-11-06 23:48:58 +00:00
|
|
|
// run-rustfix
|
2023-11-06 19:50:00 +00:00
|
|
|
fn main() {
|
|
|
|
let val = 42;
|
|
|
|
let x = match val {
|
|
|
|
(0 if true) => {
|
2023-11-06 23:31:13 +00:00
|
|
|
//~^ ERROR unexpected parentheses surrounding `match` arm pattern
|
2023-11-06 19:50:00 +00:00
|
|
|
42u8
|
|
|
|
}
|
|
|
|
_ => 0u8,
|
|
|
|
};
|
|
|
|
let _y: u32 = x; //~ ERROR mismatched types
|
2023-11-06 19:56:45 +00:00
|
|
|
}
|