rust/tests/ui/issues/issue-17999.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
203 B
Rust
Raw Normal View History

2014-10-27 17:37:07 -05:00
#![deny(unused_variables)]
fn main() {
2015-01-31 10:23:42 -06:00
for _ in 1..101 {
let x = (); //~ ERROR: unused variable: `x`
match () {
a => {} //~ ERROR: unused variable: `a`
}
}
}