diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-29 10:03:02 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-29 10:03:02 +0200 |
| commit | b44253067165949d0d70db95c21771a6aeac718f (patch) | |
| tree | 9cf733382e6407b4e1951032b25bdffa507de147 | |
| parent | 14e3d26b8a19c56c2c2b2b99ee870a9002bb70e0 (diff) | |
| download | rust-b44253067165949d0d70db95c21771a6aeac718f.tar.gz rust-b44253067165949d0d70db95c21771a6aeac718f.zip | |
Add more details in error explanation
| -rw-r--r-- | src/librustc/diagnostics.rs | 4 |
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! |
