Skip to content

Commit eb53461

Browse files
author
christopherdumas
committed
Fixed incorrect error explanation
1 parent a8a8dfb commit eb53461

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,11 +1535,11 @@ For information on the design of the orphan rules, see [RFC 1023].
15351535

15361536
E0118: r##"
15371537
Rust can't find a base type for an implementation you are providing, or the type
1538-
cannot have an implementation. For example, a typedef can't have an
1539-
implementation, since it isn't its own type (this was done in PR #6087):
1538+
cannot have an implementation. For example, only a named type or a trait can
1539+
have an implementation:
15401540
15411541
```
1542-
type NineString = [char, ..9]
1542+
type NineString = [char, ..9] // This isn't a named type (struct, enum or trait)
15431543
impl NineString {
15441544
// Some code here
15451545
}

0 commit comments

Comments
 (0)