2018-07-28 10:34:52 -05:00
|
|
|
#![feature(tool_lints)]
|
2017-09-18 05:47:33 -05:00
|
|
|
|
|
|
|
|
2018-07-28 10:34:52 -05:00
|
|
|
#![warn(clippy::short_circuit_statement)]
|
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
|
|
|
|
}
|