fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: pattern on wrong side of `@` 2 --> $DIR/intersection-patterns.rs:13:9 3 | 4LL | 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 11error: left-hand side of `@` must be a binding 12 --> $DIR/intersection-patterns.rs:23:9 13 | 14LL | 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 22error: pattern on wrong side of `@` 23 --> $DIR/intersection-patterns.rs:32:9 24 | 25LL | 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 32error: aborting due to 3 previous errors 33