]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0090.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0090.md
CommitLineData
60c5eb7d
XL
1#### Note: this error code is no longer emitted by the compiler.
2
3You gave too few lifetime arguments. Example:
4
5```compile_fail,E0107
6fn foo<'a: 'b, 'b: 'a>() {}
7
8fn main() {
9 foo::<'static>(); // error: wrong number of lifetime arguments:
10 // expected 2, found 1
11}
12```
13
14Please check you give the right number of lifetime arguments. Example:
15
16```
17fn foo<'a: 'b, 'b: 'a>() {}
18
19fn main() {
20 foo::<'static, 'static>();
21}
22```