]> git.lizzy.rs Git - rust.git/blob - tests/ui/short_circuit_statement.stderr
Merge branch 'master' into rustfmt_tests
[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:13:5
3    |
4 13 |     f() && g();
5    |     ^^^^^^^^^^^ help: replace it with: `if f() { g(); }`
6    |
7    = note: `-D clippy::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:14:5
11    |
12 14 |     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:15:5
17    |
18 15 |     1 == 2 || g();
19    |     ^^^^^^^^^^^^^^ help: replace it with: `if !(1 == 2) { g(); }`
20
21 error: aborting due to 3 previous errors
22