rust/tests/ui/match/match-ill-type2.rs

8 lines
119 B
Rust

fn main() {
match 1i32 {
1i32 => 1,
2u32 => 1, //~ ERROR mismatched types
_ => 2,
};
}