rust/tests/ui/parser/intersection-patterns-2.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

14 lines
389 B
Plaintext

error: left-hand side of `@` must be a binding
--> $DIR/intersection-patterns-2.rs:13:9
|
LL | Some(x) @ Some(y) => {}
| -------^^^-------
| | |
| | also a pattern
| interpreted as a pattern, not a binding
|
= note: bindings are `x`, `mut x`, `ref x`, and `ref mut x`
error: aborting due to 1 previous error