]> git.lizzy.rs Git - rust.git/blob - tests/ui/formatting.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[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: `-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 second `if`
9
10 error: this looks like an `else if` but the `else` is missing
11   --> $DIR/formatting.rs:22:10
12    |
13 22 |         } 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:30:10
20    |
21 30 |         } 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 is an `else if` but the formatting might hide it
27   --> $DIR/formatting.rs:39:6
28    |
29 39 |       } else
30    |  ______^
31 40 | |     if foo() { // the span of the above error should continue here
32    | |____^
33    |
34    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
35
36 error: this is an `else if` but the formatting might hide it
37   --> $DIR/formatting.rs:44:6
38    |
39 44 |       }
40    |  ______^
41 45 | |     else
42 46 | |     if foo() { // the span of the above error should continue here
43    | |____^
44    |
45    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
46
47 error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)`
48   --> $DIR/formatting.rs:71:6
49    |
50 71 |     a =- 35;
51    |      ^^^^
52    |
53    = note: `-D clippy::suspicious-assignment-formatting` implied by `-D warnings`
54    = note: to remove this lint, use either `-=` or `= -`
55
56 error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)`
57   --> $DIR/formatting.rs:72:6
58    |
59 72 |     a =* &191;
60    |      ^^^^
61    |
62    = note: to remove this lint, use either `*=` or `= *`
63
64 error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)`
65   --> $DIR/formatting.rs:75:6
66    |
67 75 |     b =! false;
68    |      ^^^^
69    |
70    = note: to remove this lint, use either `!=` or `= !`
71
72 error: possibly missing a comma here
73   --> $DIR/formatting.rs:84:19
74    |
75 84 |         -1, -2, -3 // <= no comma here
76    |                   ^
77    |
78    = note: `-D clippy::possible-missing-comma` implied by `-D warnings`
79    = note: to remove this lint, add a comma or write the expr in a single line
80
81 error: possibly missing a comma here
82   --> $DIR/formatting.rs:88:19
83    |
84 88 |         -1, -2, -3 // <= no comma here
85    |                   ^
86    |
87    = note: to remove this lint, add a comma or write the expr in a single line
88
89 error: aborting due to 10 previous errors
90