1 // Check that inherent methods invoked with `<T>::new` style
2 // carry their annotations through to NLL in connection with
3 // method type parameters.
5 struct A<'a> { x: &'a u32 }
8 fn new<'b, T>(x: &'a u32, y: T) -> Self {
15 let x = <A<'a>>::new::<&'a u32>(&v, &v);