fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0596]: cannot borrow `not_mut` as mutable, as it is not declared as mutable 2 --> $DIR/nested-binding-modes-mut.rs:6:5 3 | 4LL | let mut is_mut @ not_mut = 42; 5 | ------- help: consider changing this to be mutable: `mut not_mut` 6LL | &mut is_mut; 7LL | &mut not_mut; 8 | ^^^^^^^^^^^^ cannot borrow as mutable 9 10error[E0596]: cannot borrow `not_mut` as mutable, as it is not declared as mutable 11 --> $DIR/nested-binding-modes-mut.rs:11:5 12 | 13LL | let not_mut @ mut is_mut = 42; 14 | -------------------- help: consider changing this to be mutable: `mut not_mut` 15LL | &mut is_mut; 16LL | &mut not_mut; 17 | ^^^^^^^^^^^^ cannot borrow as mutable 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0596`.