Skip to content

Commit

Permalink
Auto merge of rust-lang#27431 - GuillaumeGomez:patch-3, r=Manishearth
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jul 31, 2015
2 parents a7b8f5b + 3254ae6 commit 7597262
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/librustc_resolve/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,10 @@ Please verify you didn't misspell the import's name.
"##,

E0437: r##"
Trait impls can only implement associated types that are members of the trait in
question. This error indicates that you attempted to implement an associated
type whose name does not match the name of any associated type in the trait.
Trait implementations can only implement associated types that are members of
the trait in question. This error indicates that you attempted to implement
an associated type whose name does not match the name of any associated type
in the trait.
Here is an example that demonstrates the error:
Expand All @@ -607,10 +608,10 @@ impl Foo for i32 {}
"##,

E0438: r##"
Trait impls can only implement associated constants that are members of the
trait in question. This error indicates that you attempted to implement an
associated constant whose name does not match the name of any associated
constant in the trait.
Trait implementations can only implement associated constants that are
members of the trait in question. This error indicates that you
attempted to implement an associated constant whose name does not
match the name of any associated constant in the trait.
Here is an example that demonstrates the error:
Expand Down

0 comments on commit 7597262

Please sign in to comment.