summaryrefslogtreecommitdiffstats
path: root/tests/ui/or-patterns/fn-param-wrap-parens.stderr
blob: 73270284131f9eb9fd93929eeddf05c62e9bc97d (plain)
1
2
3
4
5
6
7
8
error: top-level or-patterns are not allowed in function parameters
  --> $DIR/fn-param-wrap-parens.rs:13:9
   |
LL | fn fun1(A | B: E) {}
   |         ^^^^^ help: wrap the pattern in parentheses: `(A | B)`

error: aborting due to previous error