Skip to content

Commit 0170470

Browse files
author
Nick Hamann
committed
Add some comments for error codes in librustc_typeck/diagnostics
1 parent 750f2c6 commit 0170470

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
@@ -133,18 +133,18 @@ register_diagnostics! {
133133
E0030,
134134
E0031,
135135
E0033,
136-
E0034,
137-
E0035,
138-
E0036,
139-
E0038,
136+
E0034, // multiple applicable methods in scope
137+
E0035, // does not take type parameters
138+
E0036, // incorrect number of type parameters given for this method
139+
E0038, // cannot convert to a trait object because trait is not object-safe
140140
E0040, // explicit use of destructor method
141-
E0044,
142-
E0045,
141+
E0044, // foreign items may not have type parameters
142+
E0045, // variadic function must have C calling convention
143143
E0049,
144144
E0050,
145145
E0053,
146-
E0055,
147-
E0057,
146+
E0055, // method has an incompatible type for trait
147+
E0057, // method has an incompatible type for trait
148148
E0059,
149149
E0060,
150150
E0061,

0 commit comments

Comments
 (0)