summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-61424.fixed
blob: 63e00c1722e453b196fc5f487e495809c1752751 (plain)
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);
}