]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/formatting.stderr
Rollup merge of #71038 - lcnr:dyn_trait_structural_match, r=pnkfelix
[rust.git] / src / tools / clippy / tests / ui / formatting.stderr
1 error: this looks like an `else {..}` but the `else` is missing
2   --> $DIR/formatting.rs:15:6
3    |
4 LL |     } {
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
10 error: this looks like an `else if` but the `else` is missing
11   --> $DIR/formatting.rs:19:6
12    |
13 LL |     } if foo() {
14    |      ^
15    |
16    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
17
18 error: this looks like an `else if` but the `else` is missing
19   --> $DIR/formatting.rs:26:10
20    |
21 LL |         } if foo() {
22    |          ^
23    |
24    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
25
26 error: this looks like an `else if` but the `else` is missing
27   --> $DIR/formatting.rs:34:10
28    |
29 LL |         } if foo() {
30    |          ^
31    |
32    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
33
34 error: this is an `else {..}` but the formatting might hide it
35   --> $DIR/formatting.rs:43:6
36    |
37 LL |       } else
38    |  ______^
39 LL | |     {
40    | |____^
41    |
42    = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
43
44 error: this is an `else {..}` but the formatting might hide it
45   --> $DIR/formatting.rs:48:6
46    |
47 LL |       }
48    |  ______^
49 LL | |     else
50 LL | |     {
51    | |____^
52    |
53    = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
54
55 error: this is an `else if` but the formatting might hide it
56   --> $DIR/formatting.rs:54:6
57    |
58 LL |       } else
59    |  ______^
60 LL | |     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
65 error: this is an `else if` but the formatting might hide it
66   --> $DIR/formatting.rs:59:6
67    |
68 LL |       }
69    |  ______^
70 LL | |     else
71 LL | |     if foo() { // the span of the above error should continue here
72    | |____^
73    |
74    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
75
76 error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)`
77   --> $DIR/formatting.rs:100:6
78    |
79 LL |     a =- 35;
80    |      ^^^^
81    |
82    = note: `-D clippy::suspicious-assignment-formatting` implied by `-D warnings`
83    = note: to remove this lint, use either `-=` or `= -`
84
85 error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)`
86   --> $DIR/formatting.rs:101:6
87    |
88 LL |     a =* &191;
89    |      ^^^^
90    |
91    = note: to remove this lint, use either `*=` or `= *`
92
93 error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)`
94   --> $DIR/formatting.rs:104:6
95    |
96 LL |     b =! false;
97    |      ^^^^
98    |
99    = note: to remove this lint, use either `!=` or `= !`
100
101 error: possibly missing a comma here
102   --> $DIR/formatting.rs:113:19
103    |
104 LL |         -1, -2, -3 // <= no comma here
105    |                   ^
106    |
107    = note: `-D clippy::possible-missing-comma` implied by `-D warnings`
108    = note: to remove this lint, add a comma or write the expr in a single line
109
110 error: possibly missing a comma here
111   --> $DIR/formatting.rs:117:19
112    |
113 LL |         -1, -2, -3 // <= no comma here
114    |                   ^
115    |
116    = note: to remove this lint, add a comma or write the expr in a single line
117
118 error: possibly missing a comma here
119   --> $DIR/formatting.rs:154:11
120    |
121 LL |         -1
122    |           ^
123    |
124    = note: to remove this lint, add a comma or write the expr in a single line
125
126 error: aborting due to 14 previous errors
127