Skip to content

Commit 11cb5e5

Browse files
author
Nick Hamann
committed
Add long diagnostic for E0046
1 parent 0848d1c commit 11cb5e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212

1313
register_long_diagnostics! {
1414

15+
E0046: r##"
16+
When trying to make some type implement a trait `Foo`, you must, at minimum,
17+
provide implementations for all of `Foo`'s required methods (meaning the
18+
methods that do not have default implementations), as well as any required
19+
trait items like associated types or constants.
20+
"##,
21+
1522
E0081: r##"
1623
Enum discriminants are used to differentiate enum variants stored in memory.
1724
This error indicates that the same value was used for two or more variants,
@@ -106,7 +113,6 @@ register_diagnostics! {
106113
E0040, // explicit use of destructor method
107114
E0044,
108115
E0045,
109-
E0046,
110116
E0049,
111117
E0050,
112118
E0053,

0 commit comments

Comments
 (0)