@@ -1290,45 +1290,34 @@ fn main() {
1290
1290
"## ,
1291
1291
1292
1292
E0109 : r##"
1293
- You tried to give a type parameter to a type which doesn't need it. Erroneous
1294
- code example:
1293
+ You tried to provide a generic argument to a type which doesn't need it.
1294
+ Erroneous code example:
1295
1295
1296
1296
```compile_fail,E0109
1297
- type X = u32<i32>; // error: type arguments are not allowed on this entity
1297
+ type X = u32<i32>; // error: type arguments are not allowed for this type
1298
+ type Y = bool<'static>; // error: lifetime parameters are not allowed on
1299
+ // this type
1298
1300
```
1299
1301
1300
- Please check that you used the correct type and recheck its definition. Perhaps
1301
- it doesn't need the type parameter.
1302
+ Check that you used the correct argument and that the definition is correct.
1302
1303
1303
1304
Example:
1304
1305
1305
1306
```
1306
- type X = u32; // this compiles
1307
+ type X = u32; // ok!
1308
+ type Y = bool; // ok!
1307
1309
```
1308
1310
1309
- Note that type parameters for enum-variant constructors go after the variant,
1310
- not after the enum (`Option::None::<u32>`, not `Option::<u32>::None`).
1311
+ Note that generic arguments for enum variant constructors go after the variant,
1312
+ not after the enum. For example, you would write `Option::None::<u32>`,
1313
+ rather than `Option::<u32>::None`.
1311
1314
"## ,
1312
1315
1313
1316
E0110 : r##"
1314
- You tried to give a lifetime parameter to a type which doesn't need it.
1315
- Erroneous code example:
1316
-
1317
- ```compile_fail,E0110
1318
- type X = u32<'static>; // error: lifetime parameters are not allowed on
1319
- // this type
1320
- ```
1321
-
1322
- Please check that the correct type was used and recheck its definition; perhaps
1323
- it doesn't need the lifetime parameter. Example:
1324
-
1325
- ```
1326
- type X = u32; // ok!
1327
- ```
1328
- "## ,
1317
+ #### Note: this error code is no longer emitted by the compiler.
1329
1318
1330
- E0111 : r##"
1331
- You tried to give a const parameter to a type which doesn't need it .
1319
+ You tried to provide a lifetime to a type which doesn't need it.
1320
+ See `E0109` for more details .
1332
1321
"## ,
1333
1322
1334
1323
E0116 : r##"
0 commit comments