os-rust/tests/ui/nll/capture-mut-ref.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
356 B
Text
Raw Normal View History

2018-07-03 20:12:09 +01:00
error: variable does not need to be mutable
2020-07-02 14:32:12 +09:00
--> $DIR/capture-mut-ref.rs:9:9
2018-07-03 20:12:09 +01:00
|
LL | let mut x = &mut 0;
| ----^
| |
| help: remove this `mut`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2020-07-02 14:32:12 +09:00
--> $DIR/capture-mut-ref.rs:6:9
2018-07-03 20:12:09 +01:00
|
LL | #![deny(unused_mut)]
| ^^^^^^^^^^
error: aborting due to 1 previous error
2018-07-03 20:12:09 +01:00