summaryrefslogtreecommitdiffstats
path: root/src/test/ui/methods/method-call-lifetime-args.rs
blob: 3292e9fcdf80b8393600d15c15d9288a8494b3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct S;

impl S {
    fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
    fn late_implicit(self, _: &u8, _: &u8) {}
}

fn ufcs() {
    S::late::<'static>(S, &0, &0);
    //~^ ERROR cannot specify lifetime arguments explicitly
    S::late_implicit::<'static>(S, &0, &0);
    //~^ ERROR cannot specify lifetime arguments explicitly
}

fn main() {}