mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
19 lines
271 B
Rust
19 lines
271 B
Rust
|
|
|
|
#![warn(clippy)]
|
|
#![warn(if_not_else)]
|
|
|
|
fn bla() -> bool { unimplemented!() }
|
|
|
|
fn main() {
|
|
if !bla() {
|
|
println!("Bugs");
|
|
} else {
|
|
println!("Bunny");
|
|
}
|
|
if 4 != 5 {
|
|
println!("Bugs");
|
|
} else {
|
|
println!("Bunny");
|
|
}
|
|
}
|