about summary refs log tree commit diff
path: root/src/test/ui/nll/issue-61424.rs
blob: 44c8e9f7256f54d89141ba98eaa169c1a40786d9 (plain)
1
2
3
4
5
6
7
#![deny(unused_mut)]

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