summary refs log tree commit diff
path: root/src/test/ui/or-patterns/fn-param-wrap-parens.rs
blob: ed667e0e66067b778255d8ac87952018250ba7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test the suggestion to wrap an or-pattern as a function parameter in parens.

// run-rustfix

#![feature(or_patterns)]
#![allow(warnings)]

fn main() {}

enum E { A, B }
use E::*;

#[cfg(FALSE)]
fn fun1(A | B: E) {} //~ ERROR an or-pattern parameter must be wrapped in parenthesis