summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-61424.rs
blob: 3b64996c27b07ead844a1dfbf56b7ba8b9712dbd (plain)
1
2
3
4
5
6
7
8
9
// run-rustfix

#![deny(unused_mut)]

fn main() {
    let mut x; //~ ERROR: variable does not need to be mutable
    x = String::new();
    dbg!(x);
}