about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-06-29 10:03:02 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-06-29 10:03:02 +0200
commitb44253067165949d0d70db95c21771a6aeac718f (patch)
tree9cf733382e6407b4e1951032b25bdffa507de147
parent14e3d26b8a19c56c2c2b2b99ee870a9002bb70e0 (diff)
downloadrust-b44253067165949d0d70db95c21771a6aeac718f.tar.gz
rust-b44253067165949d0d70db95c21771a6aeac718f.zip
Add more details in error explanation
-rw-r--r--src/librustc/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs
index 8d51674ab13..36ec48633dc 100644
--- a/src/librustc/diagnostics.rs
+++ b/src/librustc/diagnostics.rs
@@ -386,8 +386,8 @@ type X = u32<'static>; // error: lifetime parameters are not allowed on
                        //        this type
 ```
 
-Please check you actually used the good type or check again its definition.
-Example:
+Please check that you used the correct type and recheck its definition,
+perhaps it doesn't need the lifetime parameter. Example:
 
 ```
 type X = u32; // ok!