2019-10-14 14:57:18 +00:00
|
|
|
error: pattern on wrong side of `@`
|
2022-12-22 22:18:48 +00:00
|
|
|
--> $DIR/intersection-patterns-1.rs:17:9
|
2019-10-14 14:57:18 +00:00
|
|
|
|
|
|
|
|
LL | Some(x) @ y => {}
|
|
|
|
| -------^^^-
|
|
|
|
| | |
|
2019-10-14 16:02:49 +00:00
|
|
|
| | binding on the right, should be on the left
|
|
|
|
| pattern on the left, should be on the right
|
2019-10-14 16:12:04 +00:00
|
|
|
| help: switch the order: `y @ Some(x)`
|
2019-10-14 14:57:18 +00:00
|
|
|
|
|
|
|
error: pattern on wrong side of `@`
|
2022-12-22 22:18:48 +00:00
|
|
|
--> $DIR/intersection-patterns-1.rs:27:9
|
2019-10-14 14:57:18 +00:00
|
|
|
|
|
|
|
|
LL | 1 ..= 5 @ e => {}
|
|
|
|
| -------^^^-
|
|
|
|
| | |
|
2019-10-14 16:02:49 +00:00
|
|
|
| | binding on the right, should be on the left
|
|
|
|
| pattern on the left, should be on the right
|
2021-12-29 20:51:10 +00:00
|
|
|
| help: switch the order: `e @ 1..=5`
|
2019-10-14 14:57:18 +00:00
|
|
|
|
2022-12-22 22:18:48 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2019-10-14 14:57:18 +00:00
|
|
|
|