rust/tests/ui/methods/method-call-lifetime-args-subst-index.rs
2024-02-16 20:02:50 +00:00

16 lines
210 B
Rust

//@ build-pass (FIXME(62277): could be check-pass?)
#![allow(unused)]
struct S;
impl S {
fn early_and_type<'a, T>(self) -> &'a T { loop {} }
}
fn test() {
S.early_and_type::<u16>();
}
fn main() {}