rust/src/test/ui/methods/method-call-lifetime-args-subst-index.rs
2018-12-25 21:08:33 -07:00

16 lines
174 B
Rust

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