@@ -1042,9 +1042,10 @@ enum NightsWatch {}
1042
1042
1043
1043
E0087 : r##"
1044
1044
#### Note: this error code is no longer emitted by the compiler.
1045
+
1045
1046
Too many type arguments were supplied for a function. For example:
1046
1047
1047
- ```compile_fail,E0087
1048
+ ```compile_fail,E0107
1048
1049
fn foo<T>() {}
1049
1050
1050
1051
fn main() {
@@ -1059,9 +1060,10 @@ parameters.
1059
1060
1060
1061
E0088 : r##"
1061
1062
#### Note: this error code is no longer emitted by the compiler.
1063
+
1062
1064
You gave too many lifetime arguments. Erroneous code example:
1063
1065
1064
- ```compile_fail,E0088
1066
+ ```compile_fail,E0107
1065
1067
fn f() {}
1066
1068
1067
1069
fn main() {
@@ -1106,9 +1108,10 @@ fn main() {
1106
1108
1107
1109
E0089 : r##"
1108
1110
#### Note: this error code is no longer emitted by the compiler.
1111
+
1109
1112
Too few type arguments were supplied for a function. For example:
1110
1113
1111
- ```compile_fail,E0089
1114
+ ```compile_fail,E0107
1112
1115
fn foo<T, U>() {}
1113
1116
1114
1117
fn main() {
@@ -1119,7 +1122,7 @@ fn main() {
1119
1122
Note that if a function takes multiple type arguments but you want the compiler
1120
1123
to infer some of them, you can use type placeholders:
1121
1124
1122
- ```compile_fail,E0089
1125
+ ```compile_fail,E0107
1123
1126
fn foo<T, U>(x: T) {}
1124
1127
1125
1128
fn main() {
@@ -1133,9 +1136,10 @@ fn main() {
1133
1136
1134
1137
E0090 : r##"
1135
1138
#### Note: this error code is no longer emitted by the compiler.
1139
+
1136
1140
You gave too few lifetime arguments. Example:
1137
1141
1138
- ```compile_fail,E0090
1142
+ ```compile_fail,E0107
1139
1143
fn foo<'a: 'b, 'b: 'a>() {}
1140
1144
1141
1145
fn main() {
@@ -2418,13 +2422,14 @@ fn baz<I>(x: &<I as Foo>::A) where I: Foo<A=Bar> {}
2418
2422
2419
2423
E0243 : r##"
2420
2424
#### Note: this error code is no longer emitted by the compiler.
2425
+
2421
2426
This error indicates that not enough type parameters were found in a type or
2422
2427
trait.
2423
2428
2424
2429
For example, the `Foo` struct below is defined to be generic in `T`, but the
2425
2430
type parameter is missing in the definition of `Bar`:
2426
2431
2427
- ```compile_fail,E0243
2432
+ ```compile_fail,E0107
2428
2433
struct Foo<T> { x: T }
2429
2434
2430
2435
struct Bar { x: Foo }
@@ -2433,13 +2438,14 @@ struct Bar { x: Foo }
2433
2438
2434
2439
E0244 : r##"
2435
2440
#### Note: this error code is no longer emitted by the compiler.
2441
+
2436
2442
This error indicates that too many type parameters were found in a type or
2437
2443
trait.
2438
2444
2439
2445
For example, the `Foo` struct below has no type parameters, but is supplied
2440
2446
with two in the definition of `Bar`:
2441
2447
2442
- ```compile_fail,E0244
2448
+ ```compile_fail,E0107
2443
2449
struct Foo { x: bool }
2444
2450
2445
2451
struct Bar<S, T> { x: Foo<S, T> }
0 commit comments