]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-call-lifetime-args.rs
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / methods / method-call-lifetime-args.rs
1 struct S;
2
3 impl S {
4     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
5     fn late_implicit(self, _: &u8, _: &u8) {}
6 }
7
8 fn ufcs() {
9     S::late::<'static>(S, &0, &0);
10     //~^ ERROR cannot specify lifetime arguments explicitly
11     S::late_implicit::<'static>(S, &0, &0);
12     //~^ ERROR cannot specify lifetime arguments explicitly
13 }
14
15 fn main() {}