Sign in
fuchsia
/
third_party
/
rust
/
10732e14f4ee6e462170f883c79fb90acf3ddc2c
/
.
/
tests
/
ui
/
or-patterns
/
fn-param-wrap-parens.rs
blob: d796f998e97c7e25cbfcdd3ba512e8c8f6e1b664 [
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