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 22:05:17 +00:00
--> $DIR/fn-param-wrap-parens.rs:13:9
2019-08-25 03:45:51 +00:00
|
LL | fn fun1(A | B: E) {}
| ^^^^^ help: wrap the pattern in parentheses: `(A | B)`
2019-08-25 03:45:51 +00:00
error: aborting due to previous error