summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/intersection-patterns-2.stderr
blob: f7e78814ca57c5f03183b62df02f54f1256eecbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: left-hand side of `@` must be a binding
  --> $DIR/intersection-patterns-2.rs:13:9
   |
LL |         Some(x) @ Some(y) => {}
   |         -------^^^-------
   |         |         |
   |         |         also a pattern
   |         interpreted as a pattern, not a binding
   |
   = note: bindings are `x`, `mut x`, `ref x`, and `ref mut x`

error: aborting due to previous error