@@ -1290,45 +1290,34 @@ fn main() {
12901290"## ,
12911291
12921292E0109 : 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:
12951295
12961296```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
12981300```
12991301
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.
13021303
13031304Example:
13041305
13051306```
1306- type X = u32; // this compiles
1307+ type X = u32; // ok!
1308+ type Y = bool; // ok!
13071309```
13081310
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`.
13111314"## ,
13121315
13131316E0110 : 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.
13291318
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 .
13321321"## ,
13331322
13341323E0116 : r##"
0 commit comments