]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | // Test the suggestion to wrap an or-pattern as a function parameter in parens. |
2 | ||
3 | // run-rustfix | |
4 | ||
5 | #![feature(or_patterns)] | |
6 | #![allow(warnings)] | |
7 | ||
8 | fn main() {} | |
9 | ||
10 | enum E { A, B } | |
11 | use E::*; | |
12 | ||
13 | #[cfg(FALSE)] | |
6a06907d | 14 | fn fun1((A | B): E) {} //~ ERROR top-level or-patterns are not allowed |