mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
16 lines
277 B
Rust
16 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
|
|
}
|
|
}
|
|
};
|
|
}
|