]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17999.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-17999.rs
1 #![deny(unused_variables)]
2
3 fn main() {
4     for _ in 1..101 {
5         let x = (); //~ ERROR: unused variable: `x`
6         match () {
7             a => {} //~ ERROR: unused variable: `a`
8         }
9     }
10 }