fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0596]: cannot borrow `y.0` as mutable, as it is immutable for the pattern guard 2 --> $DIR/guard-mutability-1.rs:8:33 3 | 4LL | Some(mut y) if let Some(ref mut z) = y => { 5 | ^^^^^^^^^ cannot borrow as mutable 6 | 7 = note: variables bound in patterns are immutable until the end of the pattern guard 8 9error: aborting due to previous error 10 11For more information about this error, try `rustc --explain E0596`.