File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: d73cc565656c76cb5270934caaafa78760cc565b
32
+ refs/heads/stable: 14e3d26b8a19c56c2c2b2b99ee870a9002bb70e0
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
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