]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/short_circuit_statement.stderr
Merge pull request #1784 from birkenfeld/update
[rust.git] / clippy_tests / examples / short_circuit_statement.stderr
1 error: boolean short circuit operator in statement may be clearer using an explicit test
2  --> 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  --> short_circuit_statement.rs:8:5
11   |
12 8 |     f() || g();
13   |     ^^^^^^^^^^^ help: replace it with `if !f() { g(); }`
14   |
15   = note: `-D short-circuit-statement` implied by `-D warnings`
16
17 error: boolean short circuit operator in statement may be clearer using an explicit test
18  --> short_circuit_statement.rs:9:5
19   |
20 9 |     1 == 2 || g();
21   |     ^^^^^^^^^^^^^^ help: replace it with `if !(1 == 2) { g(); }`
22   |
23   = note: `-D short-circuit-statement` implied by `-D warnings`
24
25 error: aborting due to previous error(s)
26
27 error: Could not compile `clippy_tests`.
28
29 To learn more, run the command again with --verbose.