2023-04-20 09:37:15 -05:00
|
|
|
//@run-rustfix
|
2019-08-22 00:18:08 -05:00
|
|
|
|
2018-07-28 10:34:52 -05:00
|
|
|
#![warn(clippy::short_circuit_statement)]
|
2019-08-22 00:18:08 -05:00
|
|
|
#![allow(clippy::nonminimal_bool)]
|
2016-12-29 17:00:55 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f() && g();
|
|
|
|
f() || g();
|
|
|
|
1 == 2 || g();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|