Skip to content

Commit ef03055

Browse files
committed
Improve wording in error explanation.
1 parent 60ec4ab commit ef03055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_resolve/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ E0154: r##"
1919
Imports (`use` statements) are not allowed after non-item statements, such as
2020
variable declarations and expression statements.
2121
22-
Wrong example:
22+
Here is an example that demonstrates the error:
2323
```
2424
fn f() {
2525
// Variable declaration before import
@@ -104,7 +104,7 @@ http://doc.rust-lang.org/reference.html#statements
104104
E0317: r##"
105105
User-defined types or type parameters cannot shadow the primitive types.
106106
This error indicates you tried to define a type, struct or enum with the same
107-
name as an existing primitive type, and is therefore invalid.
107+
name as an existing primitive type.
108108
109109
See the Types section of the reference for more information about the primitive
110110
types:

0 commit comments

Comments
 (0)