2018-08-08 07:28:26 -05:00
|
|
|
error[E0303]: pattern bindings are not allowed after an `@`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/pattern-bindings-after-at.rs:8:31
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | ref mut z @ &mut Some(ref a) => {
|
|
|
|
| ^^^^^ not allowed after `@`
|
|
|
|
|
2019-09-06 08:47:50 -05:00
|
|
|
error[E0502]: cannot borrow `_` as immutable because it is also borrowed as mutable
|
2019-04-15 14:54:18 -05:00
|
|
|
--> $DIR/pattern-bindings-after-at.rs:8:31
|
|
|
|
|
|
|
|
|
LL | ref mut z @ &mut Some(ref a) => {
|
|
|
|
| ----------------------^^^^^-
|
|
|
|
| | |
|
|
|
|
| | immutable borrow occurs here
|
|
|
|
| mutable borrow occurs here
|
|
|
|
...
|
|
|
|
LL | **z = None;
|
|
|
|
| ---------- mutable borrow later used here
|
|
|
|
|
2019-09-06 08:47:50 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-15 14:54:18 -05:00
|
|
|
Some errors have detailed explanations: E0303, E0502.
|
|
|
|
For more information about an error, try `rustc --explain E0303`.
|