blob: e48ab4aa96fb979fcfbcb5a1ec2e4e9ebc7a0f29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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() {}
|