rust/tests/ui/short_circuit_statement.rs
2017-10-03 12:07:24 +02:00

19 lines
162 B
Rust

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