]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/while-parsing-this-or-pattern.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / or-patterns / while-parsing-this-or-pattern.rs
1 // Test the parser for the "while parsing this or-pattern..." label here.
2
3 fn main() {
4     match Some(42) {
5         Some(42) | .=. => {} //~ ERROR expected pattern, found `.`
6         //~^ while parsing this or-pattern starting here
7         //~| NOTE expected pattern
8     }
9 }