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` } } }