]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/formatting.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / formatting.stderr
1 error: this looks like an `else if` but the `else` is missing
2   --> formatting.rs:15:6
3    |
4 15 |     } if foo() {
5    |      ^
6    |
7    = note: `-D suspicious-else-formatting` implied by `-D warnings`
8    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
9
10 error: this looks like an `else if` but the `else` is missing
11   --> formatting.rs:22:10
12    |
13 22 |         } if foo() {
14    |          ^
15    |
16    = note: `-D suspicious-else-formatting` implied by `-D warnings`
17    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
18
19 error: this looks like an `else if` but the `else` is missing
20   --> formatting.rs:30:10
21    |
22 30 |         } if foo() {
23    |          ^
24    |
25    = note: `-D suspicious-else-formatting` implied by `-D warnings`
26    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
27
28 error: this is an `else if` but the formatting might hide it
29   --> formatting.rs:39:6
30    |
31 39 |       } else
32    |  ______^
33 40 | |     if foo() { // the span of the above error should continue here
34    | |____^
35    |
36    = note: `-D suspicious-else-formatting` implied by `-D warnings`
37    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
38
39 error: this is an `else if` but the formatting might hide it
40   --> formatting.rs:44:6
41    |
42 44 |       }
43    |  ______^
44 45 | |     else
45 46 | |     if foo() { // the span of the above error should continue here
46    | |____^
47    |
48    = note: `-D suspicious-else-formatting` implied by `-D warnings`
49    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
50
51 error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)`
52   --> formatting.rs:71:6
53    |
54 71 |     a =- 35;
55    |      ^^^^
56    |
57    = note: `-D suspicious-assignment-formatting` implied by `-D warnings`
58    = note: to remove this lint, use either `-=` or `= -`
59
60 error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)`
61   --> formatting.rs:72:6
62    |
63 72 |     a =* &191;
64    |      ^^^^
65    |
66    = note: `-D suspicious-assignment-formatting` implied by `-D warnings`
67    = note: to remove this lint, use either `*=` or `= *`
68
69 error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)`
70   --> formatting.rs:75:6
71    |
72 75 |     b =! false;
73    |      ^^^^
74    |
75    = note: `-D suspicious-assignment-formatting` implied by `-D warnings`
76    = note: to remove this lint, use either `!=` or `= !`
77
78 error: possibly missing a comma here
79   --> formatting.rs:84:19
80    |
81 84 |         -1, -2, -3 // <= no comma here
82    |                   ^
83    |
84    = note: `-D possible-missing-comma` implied by `-D warnings`
85    = note: to remove this lint, add a comma or write the expr in a single line
86
87 error: possibly missing a comma here
88   --> formatting.rs:88:19
89    |
90 88 |         -1, -2, -3 // <= no comma here
91    |                   ^
92    |
93    = note: `-D possible-missing-comma` implied by `-D warnings`
94    = note: to remove this lint, add a comma or write the expr in a single line
95
96 error: aborting due to previous error(s)
97
98
99 To learn more, run the command again with --verbose.