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