mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
387 B
Text
13 lines
387 B
Text
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 previous error
|
|
|