]> git.proxmox.com Git - rustc.git/blame - src/test/ui/or-patterns/fn-param-wrap-parens.fixed
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / or-patterns / fn-param-wrap-parens.fixed
CommitLineData
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
8fn main() {}
9
10enum E { A, B }
11use E::*;
12
13#[cfg(FALSE)]
6a06907d 14fn fun1((A | B): E) {} //~ ERROR top-level or-patterns are not allowed