]> git.lizzy.rs Git - rust.git/blob - tests/ui/short_circuit_statement.stderr
clean tests/ui/short_circuit_statement.rs
[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:8:5
15   |
16 8 |     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:9:5
21   |
22 9 |     1 == 2 || g();
23   |     ^^^^^^^^^^^^^^ help: replace it with `if !(1 == 2) { g(); }`
24
25 error: aborting due to 3 previous errors
26