aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/scoping1.rs
blob: 8bc8ede5f7c27f2f899fcd87e718cf3658d64bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let x = 1;
    {
        let mut x = true;
        {
            x = false;
        }
    }
    let x = x + 1;
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}