2019-08-22 07:18:08 +02:00
|
|
|
// run-rustfix
|
|
|
|
|
2018-07-28 17:34:52 +02:00
|
|
|
#![warn(clippy::short_circuit_statement)]
|
2019-08-22 07:18:08 +02:00
|
|
|
#![allow(clippy::nonminimal_bool)]
|
2016-12-30 00:00:55 +01:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f() && g();
|
|
|
|
f() || g();
|
|
|
|
1 == 2 || g();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|