We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3b29e commit 7feeaf0Copy full SHA for 7feeaf0
src/test/ui/nll/issue-61424.rs
@@ -0,0 +1,7 @@
1
+#![deny(unused_mut)]
2
+
3
+fn main() {
4
+ let mut x; //~ ERROR: variable does not need to be mutable
5
+ x = 0;
6
+ dbg!(0);
7
+}
0 commit comments