@@ -36,12 +36,6 @@ warning: expected `}`, found `!`
36
36
LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
37
37
| ^^^^^^^^^^^^^^^
38
38
39
- warning: unmatched `}` found
40
- --> $DIR/broken_format.rs:22:42
41
- |
42
- LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
43
- | ^^^^^^^^^^^^^^^
44
-
45
39
warning: unmatched `}` found
46
40
--> $DIR/broken_format.rs:2:42
47
41
|
@@ -51,7 +45,7 @@ LL | #[diagnostic::on_unimplemented(message = "{{Test } thing")]
51
45
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
52
46
53
47
error[E0277]: {{Test } thing
54
- --> $DIR/broken_format.rs:36 :13
48
+ --> $DIR/broken_format.rs:34 :13
55
49
|
56
50
LL | check_1(());
57
51
| ------- ^^ the trait `ImportantTrait1` is not implemented for `()`
@@ -64,7 +58,7 @@ help: this trait has no implementations, consider adding one
64
58
LL | trait ImportantTrait1 {}
65
59
| ^^^^^^^^^^^^^^^^^^^^^
66
60
note: required by a bound in `check_1`
67
- --> $DIR/broken_format.rs:29 :20
61
+ --> $DIR/broken_format.rs:27 :20
68
62
|
69
63
LL | fn check_1(_: impl ImportantTrait1) {}
70
64
| ^^^^^^^^^^^^^^^ required by this bound in `check_1`
@@ -79,7 +73,7 @@ LL | #[diagnostic::on_unimplemented(message = "Test {}")]
79
73
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
80
74
81
75
error[E0277]: Test {}
82
- --> $DIR/broken_format.rs:38 :13
76
+ --> $DIR/broken_format.rs:36 :13
83
77
|
84
78
LL | check_2(());
85
79
| ------- ^^ the trait `ImportantTrait2` is not implemented for `()`
@@ -92,7 +86,7 @@ help: this trait has no implementations, consider adding one
92
86
LL | trait ImportantTrait2 {}
93
87
| ^^^^^^^^^^^^^^^^^^^^^
94
88
note: required by a bound in `check_2`
95
- --> $DIR/broken_format.rs:30 :20
89
+ --> $DIR/broken_format.rs:28 :20
96
90
|
97
91
LL | fn check_2(_: impl ImportantTrait2) {}
98
92
| ^^^^^^^^^^^^^^^ required by this bound in `check_2`
@@ -107,7 +101,7 @@ LL | #[diagnostic::on_unimplemented(message = "Test {1:}")]
107
101
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
108
102
109
103
error[E0277]: Test {1}
110
- --> $DIR/broken_format.rs:40 :13
104
+ --> $DIR/broken_format.rs:38 :13
111
105
|
112
106
LL | check_3(());
113
107
| ------- ^^ the trait `ImportantTrait3` is not implemented for `()`
@@ -120,7 +114,7 @@ help: this trait has no implementations, consider adding one
120
114
LL | trait ImportantTrait3 {}
121
115
| ^^^^^^^^^^^^^^^^^^^^^
122
116
note: required by a bound in `check_3`
123
- --> $DIR/broken_format.rs:31 :20
117
+ --> $DIR/broken_format.rs:29 :20
124
118
|
125
119
LL | fn check_3(_: impl ImportantTrait3) {}
126
120
| ^^^^^^^^^^^^^^^ required by this bound in `check_3`
@@ -135,7 +129,7 @@ LL | #[diagnostic::on_unimplemented(message = "Test {Self:123}")]
135
129
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
136
130
137
131
error[E0277]: Test ()
138
- --> $DIR/broken_format.rs:42 :13
132
+ --> $DIR/broken_format.rs:40 :13
139
133
|
140
134
LL | check_4(());
141
135
| ------- ^^ the trait `ImportantTrait4` is not implemented for `()`
@@ -148,7 +142,7 @@ help: this trait has no implementations, consider adding one
148
142
LL | trait ImportantTrait4 {}
149
143
| ^^^^^^^^^^^^^^^^^^^^^
150
144
note: required by a bound in `check_4`
151
- --> $DIR/broken_format.rs:32 :20
145
+ --> $DIR/broken_format.rs:30 :20
152
146
|
153
147
LL | fn check_4(_: impl ImportantTrait4) {}
154
148
| ^^^^^^^^^^^^^^^ required by this bound in `check_4`
@@ -161,33 +155,25 @@ LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
161
155
|
162
156
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
163
157
164
- warning: unmatched `}` found
165
- --> $DIR/broken_format.rs:22:42
166
- |
167
- LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
168
- | ^^^^^^^^^^^^^^^
169
- |
170
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
171
-
172
158
error[E0277]: Test {Self:!}
173
- --> $DIR/broken_format.rs:44 :13
159
+ --> $DIR/broken_format.rs:42 :13
174
160
|
175
161
LL | check_5(());
176
162
| ------- ^^ the trait `ImportantTrait5` is not implemented for `()`
177
163
| |
178
164
| required by a bound introduced by this call
179
165
|
180
166
help: this trait has no implementations, consider adding one
181
- --> $DIR/broken_format.rs:27 :1
167
+ --> $DIR/broken_format.rs:25 :1
182
168
|
183
169
LL | trait ImportantTrait5 {}
184
170
| ^^^^^^^^^^^^^^^^^^^^^
185
171
note: required by a bound in `check_5`
186
- --> $DIR/broken_format.rs:33 :20
172
+ --> $DIR/broken_format.rs:31 :20
187
173
|
188
174
LL | fn check_5(_: impl ImportantTrait5) {}
189
175
| ^^^^^^^^^^^^^^^ required by this bound in `check_5`
190
176
191
- error: aborting due to 5 previous errors; 12 warnings emitted
177
+ error: aborting due to 5 previous errors; 10 warnings emitted
192
178
193
179
For more information about this error, try `rustc --explain E0277`.
0 commit comments