]> git.lizzy.rs Git - rust.git/blob - tests/ui/short_circuit_statement.stderr
Merge pull request #1715 from Manishearth/rustup
[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: lint level defined here
8  --> $DIR/short_circuit_statement.rs:4:9
9   |
10 4 | #![deny(short_circuit_statement)]
11   |         ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: boolean short circuit operator in statement may be clearer using an explicit test
14   --> $DIR/short_circuit_statement.rs:11:5
15    |
16 11 |     f() || g();
17    |     ^^^^^^^^^^^ help: replace it with `if !f() { g(); }`
18
19 error: boolean short circuit operator in statement may be clearer using an explicit test
20   --> $DIR/short_circuit_statement.rs:15:5
21    |
22 15 |     1 == 2 || g();
23    |     ^^^^^^^^^^^^^^ help: replace it with `if !(1 == 2) { g(); }`
24
25 error: aborting due to 3 previous errors
26