1 error[E0303]: pattern bindings are not allowed after an `@`
2 --> $DIR/pattern-bindings-after-at.rs:8:31
4 LL | ref mut z @ &mut Some(ref a) => {
5 | ^^^^^ not allowed after `@`
7 warning[E0502]: cannot borrow `_` as immutable because it is also borrowed as mutable
8 --> $DIR/pattern-bindings-after-at.rs:8:31
10 LL | ref mut z @ &mut Some(ref a) => {
11 | ----------------------^^^^^-
13 | | immutable borrow occurs here
14 | mutable borrow occurs here
17 | ---------- mutable borrow later used here
19 = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
20 = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
21 = note: for more information, try `rustc --explain E0729`
23 error: aborting due to previous error
25 Some errors have detailed explanations: E0303, E0502.
26 For more information about an error, try `rustc --explain E0303`.