mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
277 B
Rust
15 lines
277 B
Rust
// 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
|
|
}
|
|
}
|
|
};
|
|
}
|