summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17999.rs
blob: 941f1e7755afe9e053d8bdf7a0e264007504db17 (plain)
1
2
3
4
5
6
7
8
9
10
#![deny(unused_variables)]

fn main() {
    for _ in 1..101 {
        let x = (); //~ ERROR: unused variable: `x`
        match () {
            a => {} //~ ERROR: unused variable: `a`
        }
    }
}