File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -361,13 +361,31 @@ http://doc.rust-lang.org/reference.html#ffi-attributes
361
361
"## ,
362
362
363
363
E0109 : r##"
364
- You tried to give type parameter to a type which doesn't need it. Erroneous
364
+ You tried to give type parameter to a type which doesn't need it. Erroneous
365
365
code example:
366
366
367
367
```
368
368
type X = u32<i32>; // error: type parameters are not allowed on this type
369
369
```
370
370
371
+ Please check that you used the correct type and recheck its definition. Perhaps
372
+ it doesn't need the type parameter.
373
+ Example:
374
+
375
+ ```
376
+ type X = u32; // ok!
377
+ ```
378
+ "## ,
379
+
380
+ E0110 : r##"
381
+ You tried to give a lifetime parameter to a type which doesn't need it.
382
+ Erroneous code example:
383
+
384
+ ```
385
+ type X = u32<'static>; // error: lifetime parameters are not allowed on
386
+ // this type
387
+ ```
388
+
371
389
Please check you actually used the good type or check again its definition.
372
390
Example:
373
391
@@ -1071,7 +1089,6 @@ register_diagnostics! {
1071
1089
E0017 ,
1072
1090
E0022 ,
1073
1091
E0038 ,
1074
- E0110 ,
1075
1092
E0134 ,
1076
1093
E0135 ,
1077
1094
E0136 ,
Original file line number Diff line number Diff line change @@ -1010,12 +1010,15 @@ example:
1010
1010
1011
1011
```
1012
1012
type Foo<T> = u32; // error: type parameter `T` is unused
1013
+ // or:
1014
+ type Foo<A,B> = Box<A>; // error: type parameter `B` is unused
1013
1015
```
1014
1016
1015
1017
Please check you didn't write too many type parameters. Example:
1016
1018
1017
1019
```
1018
1020
type Foo = u32; // ok!
1021
+ type Foo<A> = Box<A>; // ok!
1019
1022
```
1020
1023
"## ,
1021
1024
You can’t perform that action at this time.
0 commit comments