]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/blocks_in_if_conditions_closure.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / blocks_in_if_conditions_closure.stderr
CommitLineData
f20569fa
XL
1error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
2 --> $DIR/blocks_in_if_conditions_closure.rs:18:17
3 |
4LL | |x| {
5 | _________________^
6LL | | let target = 3;
7LL | | x == target
8LL | | },
9 | |_____________^
10 |
11 = note: `-D clippy::blocks-in-if-conditions` implied by `-D warnings`
12
13error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
14 --> $DIR/blocks_in_if_conditions_closure.rs:27:13
15 |
16LL | |x| {
17 | _____________^
18LL | | let target = 3;
19LL | | x == target
20LL | | },
21 | |_________^
22
23error: aborting due to 2 previous errors
24