2019-08-25 01:50:21 +02: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-28 02:23:58 +02:00
|
|
|
//~^ while parsing this or-pattern starting here
|
2019-08-25 01:50:21 +02:00
|
|
|
//~| NOTE expected pattern
|
|
|
|
}
|
|
|
|
}
|