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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
247 B
Plaintext
Raw Normal View History

error: top-level or-patterns are not allowed in function parameters
2020-11-21 16:05:17 -06:00
--> $DIR/fn-param-wrap-parens.rs:13:9
2019-08-24 22:45:51 -05:00
|
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