about summary refs log tree commit diff
path: root/tests/ui/nll/issue-61424.fixed
blob: 5ea9d531e24344749126fc9768925257e4d77dd8 (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);
}