Skip to content

Commit 7feeaf0

Browse files
committed
Add test
1 parent 2a3b29e commit 7feeaf0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/ui/nll/issue-61424.rs

+7
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)