fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
347 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: lint level defined here
10  --> $DIR/capture-mut-ref.rs:4:9
11   |
12LL | #![deny(unused_mut)]
13   |         ^^^^^^^^^^
14
15error: aborting due to previous error
16