Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 457 Bytes

File metadata and controls

22 lines (16 loc) · 457 Bytes

Note: this error code is no longer emitted by the compiler.

You gave too few lifetime arguments. Example:

fn foo<'a: 'b, 'b: 'a>() {}

fn main() {
    foo::<'static>(); // error: wrong number of lifetime arguments:
                      //        expected 2, found 1
}

Please check you give the right number of lifetime arguments. Example:

fn foo<'a: 'b, 'b: 'a>() {}

fn main() {
    foo::<'static, 'static>();
}