]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-61424.fixed
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / nll / issue-61424.fixed
1 // run-rustfix
2
3 #![deny(unused_mut)]
4
5 fn main() {
6     let x; //~ ERROR: variable does not need to be mutable
7     x = String::new();
8     dbg!(x);
9 }