Skip to content

Commit b442530

Browse files
Add more details in error explanation
1 parent 14e3d26 commit b442530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ type X = u32<'static>; // error: lifetime parameters are not allowed on
386386
// this type
387387
```
388388
389-
Please check you actually used the good type or check again its definition.
390-
Example:
389+
Please check that you used the correct type and recheck its definition,
390+
perhaps it doesn't need the lifetime parameter. Example:
391391
392392
```
393393
type X = u32; // ok!

0 commit comments

Comments
 (0)