2016-12-29 17:00:55 -06:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
|
|
|
|
#![deny(short_circuit_statement)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f() && g();
|
2017-02-08 07:58:07 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-29 17:00:55 -06:00
|
|
|
f() || g();
|
2017-02-08 07:58:07 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-29 17:00:55 -06:00
|
|
|
1 == 2 || g();
|
2017-02-08 07:58:07 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-29 17:00:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|