@@ -1041,6 +1041,7 @@ enum NightsWatch {}
1041
1041
"## ,
1042
1042
1043
1043
E0087 : r##"
1044
+ #### Note: this error code is no longer emitted by the compiler.
1044
1045
Too many type arguments were supplied for a function. For example:
1045
1046
1046
1047
```compile_fail,E0087
@@ -1057,6 +1058,7 @@ parameters.
1057
1058
"## ,
1058
1059
1059
1060
E0088 : r##"
1061
+ #### Note: this error code is no longer emitted by the compiler.
1060
1062
You gave too many lifetime arguments. Erroneous code example:
1061
1063
1062
1064
```compile_fail,E0088
@@ -1103,6 +1105,7 @@ fn main() {
1103
1105
"## ,
1104
1106
1105
1107
E0089 : r##"
1108
+ #### Note: this error code is no longer emitted by the compiler.
1106
1109
Too few type arguments were supplied for a function. For example:
1107
1110
1108
1111
```compile_fail,E0089
@@ -1129,6 +1132,7 @@ fn main() {
1129
1132
"## ,
1130
1133
1131
1134
E0090 : r##"
1135
+ #### Note: this error code is no longer emitted by the compiler.
1132
1136
You gave too few lifetime arguments. Example:
1133
1137
1134
1138
```compile_fail,E0090
@@ -1258,18 +1262,34 @@ extern "rust-intrinsic" {
1258
1262
"## ,
1259
1263
1260
1264
E0107 : r##"
1261
- This error means that an incorrect number of lifetime parameters were provided
1262
- for a type (like a struct or enum) or trait:
1265
+ This error means that an incorrect number of generic arguments were provided:
1263
1266
1264
1267
```compile_fail,E0107
1265
- struct Foo<'a, 'b>(&'a str, &'b str);
1266
- enum Bar { A, B, C }
1268
+ struct Foo<T> { x: T }
1267
1269
1268
- struct Baz<'a> {
1269
- foo: Foo<'a>, // error: expected 2, found 1
1270
- bar: Bar<'a>, // error: expected 0, found 1
1270
+ struct Bar { x: Foo } // error: wrong number of type arguments:
1271
+ // expected 1, found 0
1272
+ struct Baz<S, T> { x: Foo<S, T> } // error: wrong number of type arguments:
1273
+ // expected 1, found 2
1274
+
1275
+ fn foo<T, U>(x: T, y: U) {}
1276
+
1277
+ fn main() {
1278
+ let x: bool = true;
1279
+ foo::<bool>(x); // error: wrong number of type arguments:
1280
+ // expected 2, found 1
1281
+ foo::<bool, i32, i32>(x, 2, 4); // error: wrong number of type arguments:
1282
+ // expected 2, found 3
1283
+ }
1284
+
1285
+ fn f() {}
1286
+
1287
+ fn main() {
1288
+ f::<'static>(); // error: wrong number of lifetime arguments:
1289
+ // expected 0, found 1
1271
1290
}
1272
1291
```
1292
+
1273
1293
"## ,
1274
1294
1275
1295
E0109 : r##"
@@ -2397,6 +2417,7 @@ fn baz<I>(x: &<I as Foo>::A) where I: Foo<A=Bar> {}
2397
2417
"## ,
2398
2418
2399
2419
E0243 : r##"
2420
+ #### Note: this error code is no longer emitted by the compiler.
2400
2421
This error indicates that not enough type parameters were found in a type or
2401
2422
trait.
2402
2423
@@ -2411,6 +2432,7 @@ struct Bar { x: Foo }
2411
2432
"## ,
2412
2433
2413
2434
E0244 : r##"
2435
+ #### Note: this error code is no longer emitted by the compiler.
2414
2436
This error indicates that too many type parameters were found in a type or
2415
2437
trait.
2416
2438
0 commit comments