]> git.lizzy.rs Git - rust.git/blob - tests/ui/short_circuit_statement.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / short_circuit_statement.stderr
1 error: boolean short circuit operator in statement may be clearer using an explicit test
2  --> $DIR/short_circuit_statement.rs:7:5
3   |
4 7 |     f() && g();
5   |     ^^^^^^^^^^^ help: replace it with: `if f() { g(); }`
6   |
7   = note: `-D short-circuit-statement` implied by `-D warnings`
8
9 error: boolean short circuit operator in statement may be clearer using an explicit test
10  --> $DIR/short_circuit_statement.rs:8:5
11   |
12 8 |     f() || g();
13   |     ^^^^^^^^^^^ help: replace it with: `if !f() { g(); }`
14
15 error: boolean short circuit operator in statement may be clearer using an explicit test
16  --> $DIR/short_circuit_statement.rs:9:5
17   |
18 9 |     1 == 2 || g();
19   |     ^^^^^^^^^^^^^^ help: replace it with: `if !(1 == 2) { g(); }`
20
21 error: aborting due to 3 previous errors
22