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
|
2024-07-06 03:07:46 +00:00
|
|
|
|
|
|
|
|
help: switch the order
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - Some(x) @ y => {}
|
|
|
|
LL + 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
|
2024-07-06 03:07:46 +00:00
|
|
|
|
|
|
|
|
help: switch the order
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - 1 ..= 5 @ e => {}
|
|
|
|
LL + 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
|
|
|
|