Add test
This commit is contained in:
parent
2a3b29ef97
commit
7feeaf0d27
1 changed files with 7 additions and 0 deletions
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…
Reference in a new issue