Add test
This commit is contained in:
parent
2a3b29ef97
commit
7feeaf0d27
7
src/test/ui/nll/issue-61424.rs
Normal file
7
src/test/ui/nll/issue-61424.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#![deny(unused_mut)]
|
||||
|
||||
fn main() {
|
||||
let mut x; //~ ERROR: variable does not need to be mutable
|
||||
x = 0;
|
||||
dbg!(0);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user