rust-clippy/tests/ui/short_circuit_statement.rs
Luis de Bethencourt c79a350c55 clean tests/ui/short_circuit_statement.rs
Cleaning the empty lines for clarity.
2017-05-11 16:22:32 +01:00

18 lines
199 B
Rust

#![feature(plugin)]
#![plugin(clippy)]
#![deny(short_circuit_statement)]
fn main() {
f() && g();
f() || g();
1 == 2 || g();
}
fn f() -> bool {
true
}
fn g() -> bool {
false
}