rust/tests/ui/issues/issue-72278.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
283 B
Rust
Raw Normal View History

// 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() {}