]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-61424.rs
Auto merge of #66911 - eddyb:nicer-rustc_regions, r=matthewjasper
[rust.git] / src / test / ui / nll / issue-61424.rs
1 #![deny(unused_mut)]
2
3 fn main() {
4     let mut x; //~ ERROR: variable does not need to be mutable
5     x = String::new();
6     dbg!(x);
7 }