]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/intersection-patterns.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / parser / intersection-patterns.stderr
1 error: pattern on wrong side of `@`
2 --> $DIR/intersection-patterns.rs:13:9
3 |
4 LL | Some(x) @ y => {}
5 | -------^^^-
6 | | |
7 | | binding on the right, should be on the left
8 | pattern on the left, should be on the right
9 | help: switch the order: `y @ Some(x)`
10
11 error: left-hand side of `@` must be a binding
12 --> $DIR/intersection-patterns.rs:23:9
13 |
14 LL | Some(x) @ Some(y) => {}
15 | -------^^^-------
16 | | |
17 | | also a pattern
18 | interpreted as a pattern, not a binding
19 |
20 = note: bindings are `x`, `mut x`, `ref x`, and `ref mut x`
21
22 error: pattern on wrong side of `@`
23 --> $DIR/intersection-patterns.rs:32:9
24 |
25 LL | 1 ..= 5 @ e => {}
26 | -------^^^-
27 | | |
28 | | binding on the right, should be on the left
29 | pattern on the left, should be on the right
30 | help: switch the order: `e @ 1 ..=5`
31
32 error: aborting due to 3 previous errors
33