2018-07-28 15:34:52 +00:00
|
|
|
#![warn(clippy::short_circuit_statement)]
|
2019-08-22 05:18:08 +00:00
|
|
|
#![allow(clippy::nonminimal_bool)]
|
2016-12-29 23:00:55 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f() && g();
|
|
|
|
f() || g();
|
|
|
|
1 == 2 || g();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|