Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
czipperz committed Jun 2, 2019
1 parent 2a3b29e commit 7feeaf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/nll/issue-61424.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#![deny(unused_mut)]

fn main() {
let mut x; //~ ERROR: variable does not need to be mutable
x = 0;
dbg!(0);
}

0 comments on commit 7feeaf0

Please sign in to comment.