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