rust/src/test/ui/nll/capture-mut-ref.stderr

17 lines
349 B
Plaintext
Raw Normal View History

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