summary refs log tree commit diff
path: root/src/test/ui/or-patterns/fn-param-wrap-parens.stderr
blob: 2c6e4d9838ddcf9387a9971ddb6cee44e10031e5 (plain)
1
2
3
4
5
6
7
8
error: an or-pattern parameter must be wrapped in parenthesis
  --> $DIR/fn-param-wrap-parens.rs:14:9
   |
LL | fn fun1(A | B: E) {}
   |         ^^^^^ help: wrap the pattern in parenthesis: `(A | B)`

error: aborting due to previous error