diff options
| author | christopherdumas <christopherdumas@me.com> | 2015-09-09 07:00:39 -0700 |
|---|---|---|
| committer | christopherdumas <christopherdumas@me.com> | 2015-09-09 07:00:39 -0700 |
| commit | eb53461b413063ab8a73fb542a537124a8b77f54 (patch) | |
| tree | ad10ac49d2ad8551017f7ee89031c6e7218c4136 | |
| parent | a8a8dfbe1a0aa917fb392bb8f3c037ef6a1ef27f (diff) | |
| download | rust-eb53461b413063ab8a73fb542a537124a8b77f54.tar.gz rust-eb53461b413063ab8a73fb542a537124a8b77f54.zip | |
Fixed incorrect error explanation
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 4e9bcab2e9c..19ca825cf35 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 } |
