summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-72278.rs
blob: 92fd1f73a937f78833a94caf97326a5897604d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass

#![allow(unused)]

struct S;

impl S {
    fn func<'a, U>(&'a self) -> U {
        todo!()
    }
}

fn dont_crash<'a, U>() -> U {
    S.func::<'a, U>()
    //~^ WARN cannot specify lifetime arguments explicitly
    //~| WARN this was previously accepted
}

fn main() {}