Skip to content

Commit 56b450b

Browse files
committed
fix up crate/trait discrepancy, clarify language
1 parent 6c74779 commit 56b450b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_resolve/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ mod bar {
9494
"##,
9595

9696
E0253: r##"
97-
Attempt was made to import an unimportable value. This can happen when
98-
trying to import a function from a trait. An example of this error:
97+
Attempt was made to import an unimportable value. This can happen when
98+
trying to import a function from a trait. An example of this error:
9999
100100
```
101101
mod foo {
@@ -106,8 +106,8 @@ mod foo {
106106
use foo::MyTrait::doSomething;
107107
```
108108
109-
In general, it's not legal to directly import functions from a crate or
110-
concrete type.
109+
In general, it's not legal to directly import methods belonging to a
110+
trait or concrete type.
111111
"##,
112112

113113
E0255: r##"

0 commit comments

Comments
 (0)