fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
354 B16 linesraw
1error: variable does not need to be mutable
2  --> $DIR/capture-mut-ref.rs:7:9
3   |
4LL |     let mut x = &mut 0;
5   |         ----^
6   |         |
7   |         help: remove this `mut`
8   |
9note: the lint level is defined here
10  --> $DIR/capture-mut-ref.rs:4:9
11   |
12LL | #![deny(unused_mut)]
13   |         ^^^^^^^^^^
14
15error: aborting due to previous error
16