2019-04-05 07:22:36 +02:00
|
|
|
// run-pass
|
|
|
|
|
2019-09-24 23:55:05 +02:00
|
|
|
#![allow(clippy::comparison_chain)]
|
2018-07-30 11:33:44 +02:00
|
|
|
#![deny(clippy::if_same_then_else)]
|
2018-02-09 15:23:51 +01:00
|
|
|
|
2019-02-06 07:45:57 +01:00
|
|
|
/// Test for https://github.com/rust-lang/rust-clippy/issues/2426
|
|
|
|
|
2018-02-09 15:23:51 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|