]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/capture-mut-ref.stderr
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / capture-mut-ref.stderr
1 error: variable does not need to be mutable
2   --> $DIR/capture-mut-ref.rs:9:9
3    |
4 LL |     let mut x = &mut 0;
5    |         ----^
6    |         |
7    |         help: remove this `mut`
8    |
9 note: the lint level is defined here
10   --> $DIR/capture-mut-ref.rs:6:9
11    |
12 LL | #![deny(unused_mut)]
13    |         ^^^^^^^^^^
14
15 error: aborting due to previous error
16