rust/src/test/ui/or-patterns/fn-param-wrap-parens.stderr

9 lines
247 B
Plaintext
Raw Normal View History

error: top-level or-patterns are not allowed in function parameters
2019-08-24 22:45:51 -05:00
--> $DIR/fn-param-wrap-parens.rs:14:9
|
LL | fn fun1(A | B: E) {}
| ^^^^^ help: wrap the pattern in parentheses: `(A | B)`
2019-08-24 22:45:51 -05:00
error: aborting due to previous error