2016-12-29 17:00:55 -06:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
#![warn(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
|
|
|
|
}
|