File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1223,6 +1223,28 @@ fn main() {
1223
1223
```
1224
1224
"## ,
1225
1225
1226
+ E0090 : r##"
1227
+ You gave too few lifetime parameters. Example:
1228
+
1229
+ ```compile_fail,E0090
1230
+ fn foo<'a: 'b, 'b: 'a>() {}
1231
+
1232
+ fn main() {
1233
+ foo::<'static>(); // error, expected 2 lifetime parameters
1234
+ }
1235
+ ```
1236
+
1237
+ Please check you give the right number of lifetime parameters. Example:
1238
+
1239
+ ```
1240
+ fn foo<'a: 'b, 'b: 'a>() {}
1241
+
1242
+ fn main() {
1243
+ foo::<'static, 'static>();
1244
+ }
1245
+ ```
1246
+ "## ,
1247
+
1226
1248
E0091 : r##"
1227
1249
You gave an unnecessary type parameter in a type alias. Erroneous code
1228
1250
example:
@@ -4120,7 +4142,6 @@ register_diagnostics! {
4120
4142
// E0068,
4121
4143
// E0085,
4122
4144
// E0086,
4123
- E0090 ,
4124
4145
E0103 , // @GuillaumeGomez: I was unable to get this error, try your best!
4125
4146
E0104 ,
4126
4147
// E0123,
You can’t perform that action at this time.
0 commit comments