This commit is contained in:
Chris Gregory 2019-06-01 19:14:09 -05:00
parent 2a3b29ef97
commit 7feeaf0d27

View 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);
}