rust/src/test/ui/nll/capture-mut-ref.stderr
2018-12-25 21:08:33 -07:00

17 lines
347 B
Plaintext

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