mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
20 lines
307 B
Rust
20 lines
307 B
Rust
#![feature(tool_lints)]
|
|
|
|
#![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");
|
|
}
|
|
}
|