2019-08-24 18:50:21 -05:00
|
|
|
// 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-27 19:23:58 -05:00
|
|
|
//~^ while parsing this or-pattern starting here
|
2019-08-24 18:50:21 -05:00
|
|
|
//~| NOTE expected pattern
|
|
|
|
}
|
|
|
|
}
|