rust/tests/ui/or-patterns/while-parsing-this-or-pattern.rs
2025-04-08 23:06:31 +03:00

9 lines
280 B
Rust

// Test the parser for the "while parsing this or-pattern..." label here.
fn main() {
match Some(42) {
Some(42) | .=. => {} //~ ERROR expected pattern, found `.`
//~^ NOTE while parsing this or-pattern starting here
//~| NOTE expected pattern
}
}