fix up crate/trait discrepancy, clarify language

This commit is contained in:
Alisdair Owens
2015-07-18 20:26:08 +01:00
parent 6c74779a5c
commit 56b450b291

View File

@@ -94,8 +94,8 @@ mod bar {
"##, "##,
E0253: r##" E0253: r##"
Attempt was made to import an unimportable value. This can happen when Attempt was made to import an unimportable value. This can happen when
trying to import a function from a trait. An example of this error: trying to import a function from a trait. An example of this error:
``` ```
mod foo { mod foo {
@@ -106,8 +106,8 @@ mod foo {
use foo::MyTrait::doSomething; use foo::MyTrait::doSomething;
``` ```
In general, it's not legal to directly import functions from a crate or In general, it's not legal to directly import methods belonging to a
concrete type. trait or concrete type.
"##, "##,
E0255: r##" E0255: r##"