rust/tests/run-pass/if_same_then_else.rs
2019-01-08 21:46:39 +01:00

14 lines
215 B
Rust

#![deny(clippy::if_same_then_else)]
fn main() {}
pub fn foo(a: i32, b: i32) -> Option<&'static str> {
if a == b {
None
} else if a > b {
Some("a pfeil b")
} else {
None
}
}