]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/intersection-patterns-1.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / intersection-patterns-1.stderr
1 error: pattern on wrong side of `@`
2   --> $DIR/intersection-patterns-1.rs:17: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: pattern on wrong side of `@`
12   --> $DIR/intersection-patterns-1.rs:27:9
13    |
14 LL |         1 ..= 5 @ e => {}
15    |         -------^^^-
16    |         |         |
17    |         |         binding on the right, should be on the left
18    |         pattern on the left, should be on the right
19    |         help: switch the order: `e @ 1..=5`
20
21 error: aborting due to 2 previous errors
22