mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
19 lines
284 B
Rust
19 lines
284 B
Rust
//@ 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() {}
|