]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/suspicious_else_formatting.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / suspicious_else_formatting.stderr
CommitLineData
f20569fa
XL
1error: this looks like an `else {..}` but the `else` is missing
2 --> $DIR/suspicious_else_formatting.rs:11:6
3 |
4LL | } {
5 | ^
6 |
7 = note: `-D clippy::suspicious-else-formatting` implied by `-D warnings`
8 = note: to remove this lint, add the missing `else` or add a new line before the next block
9
10error: this looks like an `else if` but the `else` is missing
11 --> $DIR/suspicious_else_formatting.rs:15:6
12 |
13LL | } if foo() {
14 | ^
15 |
16 = note: to remove this lint, add the missing `else` or add a new line before the second `if`
17
18error: this looks like an `else if` but the `else` is missing
19 --> $DIR/suspicious_else_formatting.rs:22:10
20 |
21LL | } if foo() {
22 | ^
23 |
24 = note: to remove this lint, add the missing `else` or add a new line before the second `if`
25
26error: this looks like an `else if` but the `else` is missing
27 --> $DIR/suspicious_else_formatting.rs:30:10
28 |
29LL | } if foo() {
30 | ^
31 |
32 = note: to remove this lint, add the missing `else` or add a new line before the second `if`
33
34error: this is an `else {..}` but the formatting might hide it
35 --> $DIR/suspicious_else_formatting.rs:39:6
36 |
37LL | } else
38 | ______^
39LL | | {
40 | |____^
41 |
42 = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
43
cdc7bbd5
XL
44error: this is an `else if` but the formatting might hide it
45 --> $DIR/suspicious_else_formatting.rs:51:6
f20569fa 46 |
cdc7bbd5 47LL | } else
f20569fa 48 | ______^
cdc7bbd5 49LL | | if foo() { // the span of the above error should continue here
f20569fa
XL
50 | |____^
51 |
cdc7bbd5 52 = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
f20569fa
XL
53
54error: this is an `else if` but the formatting might hide it
cdc7bbd5 55 --> $DIR/suspicious_else_formatting.rs:56:6
f20569fa 56 |
cdc7bbd5 57LL | }
f20569fa 58 | ______^
cdc7bbd5 59LL | | else
f20569fa
XL
60LL | | if foo() { // the span of the above error should continue here
61 | |____^
62 |
63 = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
64
cdc7bbd5
XL
65error: this is an `else {..}` but the formatting might hide it
66 --> $DIR/suspicious_else_formatting.rs:83:6
f20569fa
XL
67 |
68LL | }
69 | ______^
cdc7bbd5 70LL | |
f20569fa 71LL | | else
cdc7bbd5 72LL | | {
f20569fa
XL
73 | |____^
74 |
cdc7bbd5
XL
75 = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
76
77error: this is an `else {..}` but the formatting might hide it
78 --> $DIR/suspicious_else_formatting.rs:91:6
79 |
80LL | }
81 | ______^
82LL | | else
83LL | |
84LL | | {
85 | |____^
86 |
87 = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
f20569fa 88
cdc7bbd5 89error: aborting due to 9 previous errors
f20569fa 90