mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
354 B
Plaintext
17 lines
354 B
Plaintext
error: variable does not need to be mutable
|
|
--> $DIR/capture-mut-ref.rs:9:9
|
|
|
|
|
LL | let mut x = &mut 0;
|
|
| ----^
|
|
| |
|
|
| help: remove this `mut`
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/capture-mut-ref.rs:6:9
|
|
|
|
|
LL | #![deny(unused_mut)]
|
|
| ^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|