]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/fn-param-wrap-parens.fixed
Rollup merge of #80269 - pickfire:patch-4, r=joshtriplett
[rust.git] / src / test / ui / or-patterns / fn-param-wrap-parens.fixed
1 // Test the suggestion to wrap an or-pattern as a function parameter in parens.
2
3 // run-rustfix
4
5 #![allow(warnings)]
6
7 fn main() {}
8
9 enum E { A, B }
10 use E::*;
11
12 #[cfg(FALSE)]
13 fn fun1((A | B): E) {} //~ ERROR top-level or-patterns are not allowed