rust-clippy/tests/ui/short_circuit_statement.rs
2019-01-08 21:46:39 +01:00

15 lines
167 B
Rust

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