We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7feeaf0 commit fea2cdbCopy full SHA for fea2cdb
src/test/ui/nll/issue-61424.rs
@@ -2,6 +2,6 @@
2
3
fn main() {
4
let mut x; //~ ERROR: variable does not need to be mutable
5
- x = 0;
6
- dbg!(0);
+ x = String::new();
+ dbg!(x);
7
}
src/test/ui/nll/issue-61424.stderr
@@ -0,0 +1,16 @@
1
+error: variable does not need to be mutable
+ --> $DIR/issue-61424.rs:4:9
+ |
+LL | let mut x;
+ | ----^
+ | |
+ | help: remove this `mut`
8
9
+note: lint level defined here
10
+ --> $DIR/issue-61424.rs:1:9
11
12
+LL | #![deny(unused_mut)]
13
+ | ^^^^^^^^^^
14
+
15
+error: aborting due to previous error
16
0 commit comments