rust/src/test/ui/nll/issue-61424.fixed
2020-07-02 15:18:33 +09:00

9 lines
147 B
Rust

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