]> git.proxmox.com Git - rustc.git/blob - src/test/ui/methods/method-call-lifetime-args.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / 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() {}