From ef030555c67988878e1a68743da25b5107bd2787 Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Mon, 11 May 2015 09:10:19 +0100 Subject: [PATCH] Improve wording in error explanation. --- src/librustc_resolve/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index 5f0b5af9a053..2ac6ffdea2d6 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -19,7 +19,7 @@ E0154: r##" Imports (`use` statements) are not allowed after non-item statements, such as variable declarations and expression statements. -Wrong example: +Here is an example that demonstrates the error: ``` fn f() { // Variable declaration before import @@ -104,7 +104,7 @@ http://doc.rust-lang.org/reference.html#statements E0317: r##" User-defined types or type parameters cannot shadow the primitive types. This error indicates you tried to define a type, struct or enum with the same -name as an existing primitive type, and is therefore invalid. +name as an existing primitive type. See the Types section of the reference for more information about the primitive types: