]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | #### Note: this error code is no longer emitted by the compiler. |
2 | ||
3 | You gave too few lifetime arguments. Example: | |
4 | ||
5 | ```compile_fail,E0107 | |
6 | fn foo<'a: 'b, 'b: 'a>() {} | |
7 | ||
8 | fn main() { | |
9 | foo::<'static>(); // error: wrong number of lifetime arguments: | |
10 | // expected 2, found 1 | |
11 | } | |
12 | ``` | |
13 | ||
14 | Please check you give the right number of lifetime arguments. Example: | |
15 | ||
16 | ``` | |
17 | fn foo<'a: 'b, 'b: 'a>() {} | |
18 | ||
19 | fn main() { | |
20 | foo::<'static, 'static>(); | |
21 | } | |
22 | ``` |