]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/short_circuit_statement.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / short_circuit_statement.stderr
CommitLineData
f20569fa
XL
1error: boolean short circuit operator in statement may be clearer using an explicit test
2 --> $DIR/short_circuit_statement.rs:7:5
3 |
4LL | f() && g();
5 | ^^^^^^^^^^^ help: replace it with: `if f() { g(); }`
6 |
7 = note: `-D clippy::short-circuit-statement` implied by `-D warnings`
8
9error: boolean short circuit operator in statement may be clearer using an explicit test
10 --> $DIR/short_circuit_statement.rs:8:5
11 |
12LL | f() || g();
13 | ^^^^^^^^^^^ help: replace it with: `if !f() { g(); }`
14
15error: boolean short circuit operator in statement may be clearer using an explicit test
16 --> $DIR/short_circuit_statement.rs:9:5
17 |
18LL | 1 == 2 || g();
19 | ^^^^^^^^^^^^^^ help: replace it with: `if !(1 == 2) { g(); }`
20
21error: aborting due to 3 previous errors
22