rust/tests/ui/nll/capture-mut-ref.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

17 lines
356 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 1 previous error