Sign in
android
/
toolchain
/
rustc
/
32f7835b4f844d645621e83c89a3178ef87b0d69
/
.
/
src
/
test
/
ui
/
or-patterns
/
fn-param-wrap-parens.rs
blob: 8e703d274c78531ab52ff23ce7072026352d6cb1 [
file
] [
log
] [
blame
]
// Test the suggestion to wrap an or-pattern as a function parameter in parens.
// run-rustfix
#![
allow
(
warnings
)]
fn
main
()
{}
enum
E
{
A
,
B
}
use
E
::*;
#[
cfg
(
FALSE
)]
fn
fun1
(
A
|
B
:
E
)
{}
//~ ERROR top-level or-patterns are not allowed