rust/tests/ui/if_not_else.rs
2017-02-08 14:58:07 +01:00

20 lines
308 B
Rust

#![feature(plugin)]
#![plugin(clippy)]
#![deny(clippy)]
#![deny(if_not_else)]
fn bla() -> bool { unimplemented!() }
fn main() {
if !bla() {
println!("Bugs");
} else {
println!("Bunny");
}
if 4 != 5 {
println!("Bugs");
} else {
println!("Bunny");
}
}