1 2 3 4 5 6 7 8 9
// run-rustfix #![deny(unused_mut)] fn main() { let x; //~ ERROR: variable does not need to be mutable x = String::new(); dbg!(x); }