// issue: rust-lang/rust#124022 struct Type; //~^ ERROR type parameter `T` is never used fn main() { { impl Type { fn new() -> Type { Type //~^ ERROR type annotations needed } } }; }