]> git.lizzy.rs Git - rust.git/blob - tests/ui/if_not_else.rs
Move all our tests back to ui tests
[rust.git] / tests / ui / if_not_else.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3 #![warn(clippy)]
4 #![warn(if_not_else)]
5
6 fn bla() -> bool { unimplemented!() }
7
8 fn main() {
9     if !bla() {
10         println!("Bugs");
11     } else {
12         println!("Bunny");
13     }
14     if 4 != 5 {
15         println!("Bugs");
16     } else {
17         println!("Bunny");
18     }
19 }