]> git.lizzy.rs Git - rust.git/blob - tests/ui/formatting.stderr
Merge pull request #1538 from Manishearth/publish
[rust.git] / tests / ui / formatting.stderr
1 error: this looks like an `else if` but the `else` is missing
2   --> $DIR/formatting.rs:15:6
3    |
4 15 |     } if foo() {
5    |      ^
6    |
7    = note: #[deny(suspicious_else_formatting)] implied by #[deny(clippy)]
8 note: lint level defined here
9   --> $DIR/formatting.rs:4:9
10    |
11 4  | #![deny(clippy)]
12    |         ^^^^^^
13    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
14
15 error: this looks like an `else if` but the `else` is missing
16   --> $DIR/formatting.rs:24:10
17    |
18 24 |         } if foo() {
19    |          ^
20    |
21    = note: #[deny(suspicious_else_formatting)] implied by #[deny(clippy)]
22    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
23
24 error: this looks like an `else if` but the `else` is missing
25   --> $DIR/formatting.rs:34:10
26    |
27 34 |         } if foo() {
28    |          ^
29    |
30    = note: #[deny(suspicious_else_formatting)] implied by #[deny(clippy)]
31    = note: to remove this lint, add the missing `else` or add a new line before the second `if`
32
33 error: this is an `else if` but the formatting might hide it
34   --> $DIR/formatting.rs:45:6
35    |
36 45 |       } else
37    |  ______^ starting here...
38 46 | |
39 47 | |
40 48 | |     if foo() { // the span of the above error should continue here
41    | |____^ ...ending here
42    |
43    = note: #[deny(suspicious_else_formatting)] implied by #[deny(clippy)]
44    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
45
46 error: this is an `else if` but the formatting might hide it
47   --> $DIR/formatting.rs:52:6
48    |
49 52 |       }
50    |  ______^ starting here...
51 53 | |
52 54 | |
53 55 | |     else
54 56 | |     if foo() { // the span of the above error should continue here
55    | |____^ ...ending here
56    |
57    = note: #[deny(suspicious_else_formatting)] implied by #[deny(clippy)]
58    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
59
60 error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)`
61   --> $DIR/formatting.rs:83:6
62    |
63 83 |     a =- 35;
64    |      ^^^^
65    |
66    = note: #[deny(suspicious_assignment_formatting)] implied by #[deny(clippy)]
67 note: lint level defined here
68   --> $DIR/formatting.rs:4:9
69    |
70 4  | #![deny(clippy)]
71    |         ^^^^^^
72    = note: to remove this lint, use either `-=` or `= -`
73
74 error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)`
75   --> $DIR/formatting.rs:86:6
76    |
77 86 |     a =* &191;
78    |      ^^^^
79    |
80    = note: #[deny(suspicious_assignment_formatting)] implied by #[deny(clippy)]
81    = note: to remove this lint, use either `*=` or `= *`
82
83 error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)`
84   --> $DIR/formatting.rs:91:6
85    |
86 91 |     b =! false;
87    |      ^^^^
88    |
89    = note: #[deny(suspicious_assignment_formatting)] implied by #[deny(clippy)]
90    = note: to remove this lint, use either `!=` or `= !`
91
92 error: possibly missing a comma here
93    --> $DIR/formatting.rs:102:19
94     |
95 102 |         -1, -2, -3 // <= no comma here
96     |                   ^
97     |
98     = note: #[deny(possible_missing_comma)] implied by #[deny(clippy)]
99 note: lint level defined here
100    --> $DIR/formatting.rs:4:9
101     |
102 4   | #![deny(clippy)]
103     |         ^^^^^^
104     = note: to remove this lint, add a comma or write the expr in a single line
105
106 error: possibly missing a comma here
107    --> $DIR/formatting.rs:108:19
108     |
109 108 |         -1, -2, -3 // <= no comma here
110     |                   ^
111     |
112     = note: #[deny(possible_missing_comma)] implied by #[deny(clippy)]
113     = note: to remove this lint, add a comma or write the expr in a single line
114
115 error: aborting due to 10 previous errors
116