38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
20 lines
286 B
Rust
20 lines
286 B
Rust
#![warn(clippy::all)]
|
|
#![warn(clippy::if_not_else)]
|
|
|
|
fn bla() -> bool {
|
|
unimplemented!()
|
|
}
|
|
|
|
fn main() {
|
|
if !bla() {
|
|
println!("Bugs");
|
|
} else {
|
|
println!("Bunny");
|
|
}
|
|
if 4 != 5 {
|
|
println!("Bugs");
|
|
} else {
|
|
println!("Bunny");
|
|
}
|
|
}
|