blob: 5ea9d531e24344749126fc9768925257e4d77dd8 [file] [log] [blame] [edit]
//@ run-rustfix
#![deny(unused_mut)]
fn main() {
let x; //~ ERROR: variable does not need to be mutable
x = String::new();
dbg!(x);
}