]> git.lizzy.rs Git - rust.git/blob - tests/ui/short_circuit_statement.rs
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / short_circuit_statement.rs
1 #![warn(clippy::short_circuit_statement)]
2
3 fn main() {
4     f() && g();
5     f() || g();
6     1 == 2 || g();
7 }
8
9 fn f() -> bool {
10     true
11 }
12
13 fn g() -> bool {
14     false
15 }