2019-08-22 05:18:08 +00:00
|
|
|
#![warn(clippy::short_circuit_statement)]
|
|
|
|
#![allow(clippy::nonminimal_bool)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
if f() { g(); }
|
|
|
|
if !f() { g(); }
|
2021-12-10 17:32:23 +00:00
|
|
|
if 1 != 2 { g(); }
|
2019-08-22 05:18:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|