blob: 635fe74b8679d31bc6c5f1040b35f1a02a531127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// issue: rust-lang/rust#124022
struct Type<T>;
//~^ ERROR type parameter `T` is never used
fn main() {
{
impl<T> Type<T> {
fn new() -> Type<T> {
Type
//~^ ERROR type annotations needed
}
}
};
}
|