summary refs log tree commit diff
path: root/src/test/ui/methods/method-call-lifetime-args-subst-index.rs
blob: 4ee09dcdf1965d1e8307ff9daccae60cd42378ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}