File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1533,6 +1533,26 @@ For information on the design of the orphan rules, see [RFC 1023].
1533
1533
[RFC 1023]: https://github.com/rust-lang/rfcs/pull/1023
1534
1534
"## ,
1535
1535
1536
+ E0118 : r##"
1537
+ Rust can't find a base type for an implementation you are providing, or the type
1538
+ cannot have an implementation. For example, only a named type or a trait can
1539
+ have an implementation:
1540
+
1541
+ ```
1542
+ type NineString = [char, ..9] // This isn't a named type (struct, enum or trait)
1543
+ impl NineString {
1544
+ // Some code here
1545
+ }
1546
+ ```
1547
+
1548
+ In the other, simpler case, Rust just can't find the type you are providing an
1549
+ impelementation for:
1550
+
1551
+ ```
1552
+ impl SomeTypeThatDoesntExist { }
1553
+ ```
1554
+ "## ,
1555
+
1536
1556
E0119 : r##"
1537
1557
There are conflicting trait implementations for the same type.
1538
1558
Example of erroneous code:
@@ -3258,7 +3278,6 @@ register_diagnostics! {
3258
3278
E0090 ,
3259
3279
E0103 , // @GuillaumeGomez: I was unable to get this error, try your best!
3260
3280
E0104 ,
3261
- E0118 ,
3262
3281
// E0123,
3263
3282
// E0127,
3264
3283
// E0129,
You can’t perform that action at this time.
0 commit comments