mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-21 12:42:39 +00:00
15 lines
328 B
Rust
15 lines
328 B
Rust
struct Struct<T>(T);
|
|
impl Struct<T>
|
|
//~^ ERROR cannot find type `T` in this scope
|
|
//~| NOTE not found in this scope
|
|
//~| HELP you might be missing a type parameter
|
|
where
|
|
T: Copy,
|
|
//~^ ERROR cannot find type `T` in this scope
|
|
//~| NOTE not found in this scope
|
|
{
|
|
fn method(v: Vec<u8>) { v.len(); }
|
|
}
|
|
|
|
fn main() {}
|