From eb53461b413063ab8a73fb542a537124a8b77f54 Mon Sep 17 00:00:00 2001 From: christopherdumas Date: Wed, 9 Sep 2015 07:00:39 -0700 Subject: [PATCH] Fixed incorrect error explanation --- src/librustc_typeck/diagnostics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 4e9bcab2e9c4..19ca825cf35a 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1535,11 +1535,11 @@ For information on the design of the orphan rules, see [RFC 1023]. E0118: r##" Rust can't find a base type for an implementation you are providing, or the type -cannot have an implementation. For example, a typedef can't have an -implementation, since it isn't its own type (this was done in PR #6087): +cannot have an implementation. For example, only a named type or a trait can +have an implementation: ``` -type NineString = [char, ..9] +type NineString = [char, ..9] // This isn't a named type (struct, enum or trait) impl NineString { // Some code here }