]> git.lizzy.rs Git - rust.git/blob - tests/ui/short_circuit_statement.rs
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / short_circuit_statement.rs
1
2
3
4 #![warn(short_circuit_statement)]
5
6 fn main() {
7     f() && g();
8     f() || g();
9     1 == 2 || g();
10 }
11
12 fn f() -> bool {
13     true
14 }
15
16 fn g() -> bool {
17     false
18 }