2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2020-05-21 19:51:39 +01:00
|
|
|
|
|
|
|
#![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() {}
|