Test #[allow(unused)] on if expression

This commit is contained in:
Aaron Hill 2020-02-15 19:13:36 -05:00
parent f63b88c761
commit e912d9d7ec
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -0,0 +1,12 @@
// check-pass
fn main() {
#[allow(unused_variables)]
if true {
let a = 1;
} else if false {
let b = 1;
} else {
let c = 1;
}
}