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