fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0303]: pattern bindings are not allowed after an `@` 2 --> $DIR/pattern-bindings-after-at.rs:8:31 3 | 4LL | ref mut z @ &mut Some(ref a) => { 5 | ^^^^^ not allowed after `@` 6 7error[E0502]: cannot borrow `_` as immutable because it is also borrowed as mutable 8 --> $DIR/pattern-bindings-after-at.rs:8:31 9 | 10LL | ref mut z @ &mut Some(ref a) => { 11 | ----------------------^^^^^- 12 | | | 13 | | immutable borrow occurs here 14 | mutable borrow occurs here 15... 16LL | **z = None; 17 | ---------- mutable borrow later used here 18 19error: aborting due to 2 previous errors 20 21Some errors have detailed explanations: E0303, E0502. 22For more information about an error, try `rustc --explain E0303`.