rust/tests/ui/or-patterns/while-parsing-this-or-pattern.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
275 B
Rust
Raw Normal View History

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