rust/src/test/ui/or-patterns/multiple-pattern-typo.rs

8 lines
138 B
Rust
Raw Normal View History

fn main() {
let x = 3;
match x {
1 | 2 || 3 => (), //~ ERROR unexpected token `||` after pattern
_ => (),
}
}