fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
469 B11 linesraw
1error[E0596]: cannot borrow `y.0` as mutable, as it is immutable for the pattern guard
2  --> $DIR/guard-mutability-2.rs:8:37
3   |
4LL |         Some(ref 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`.