mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
14 lines
243 B
Rust
14 lines
243 B
Rust
// 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
|