2023-04-20 09:37:15 -05:00
|
|
|
//@run-rustfix
|
2019-08-22 00:18:08 -05:00
|
|
|
|
|
|
|
#![warn(clippy::short_circuit_statement)]
|
|
|
|
#![allow(clippy::nonminimal_bool)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
if f() { g(); }
|
|
|
|
if !f() { g(); }
|
2021-12-10 11:32:23 -06:00
|
|
|
if 1 != 2 { g(); }
|
2019-08-22 00:18:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|