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 22:37:07 +00:00
#![deny(unused_variables)]
fn main() {
2015-01-31 16:23:42 +00:00
for _ in 1..101 {
let x = (); //~ ERROR: unused variable: `x`
match () {
a => {} //~ ERROR: unused variable: `a`
}
}
}