]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0090.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0090.md
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 ```