Skip to content

Commit 7597262

Browse files
committed
Auto merge of #27431 - GuillaumeGomez:patch-3, r=Manishearth
2 parents a7b8f5b + 3254ae6 commit 7597262

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/librustc_resolve/diagnostics.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,10 @@ Please verify you didn't misspell the import's name.
583583
"##,
584584

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

609610
E0438: r##"
610-
Trait impls can only implement associated constants that are members of the
611-
trait in question. This error indicates that you attempted to implement an
612-
associated constant whose name does not match the name of any associated
613-
constant in the trait.
611+
Trait implementations can only implement associated constants that are
612+
members of the trait in question. This error indicates that you
613+
attempted to implement an associated constant whose name does not
614+
match the name of any associated constant in the trait.
614615
615616
Here is an example that demonstrates the error:
616617

0 commit comments

Comments
 (0)