Skip to content

Commit a6dc983

Browse files
author
Nick Hamann
committed
Add some comments for error codes in librustc_typeck/diagnostics
1 parent 9ecc989 commit a6dc983

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,18 @@ register_diagnostics! {
164164
E0030,
165165
E0031,
166166
E0033,
167-
E0034,
168-
E0035,
169-
E0036,
170-
E0038,
167+
E0034, // multiple applicable methods in scope
168+
E0035, // does not take type parameters
169+
E0036, // incorrect number of type parameters given for this method
170+
E0038, // cannot convert to a trait object because trait is not object-safe
171171
E0040, // explicit use of destructor method
172-
E0044,
173-
E0045,
172+
E0044, // foreign items may not have type parameters
173+
E0045, // variadic function must have C calling convention
174174
E0049,
175175
E0050,
176176
E0053,
177-
E0055,
178-
E0057,
177+
E0055, // method has an incompatible type for trait
178+
E0057, // method has an incompatible type for trait
179179
E0059,
180180
E0060,
181181
E0061,

0 commit comments

Comments
 (0)