2018-07-03 14:12:09 -05:00
|
|
|
error: variable does not need to be mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/capture-mut-ref.rs:8:9
|
2018-07-03 14:12:09 -05:00
|
|
|
|
|
|
|
|
LL | let mut x = &mut 0;
|
|
|
|
| ----^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/capture-mut-ref.rs:5:9
|
2018-07-03 14:12:09 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_mut)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|