]>
Commit | Line | Data |
---|---|---|
5099ac24 FG |
1 | struct Struct<T>(T); |
2 | impl Struct<T> | |
3 | //~^ ERROR cannot find type `T` in this scope | |
4 | //~| NOTE not found in this scope | |
5 | //~| HELP you might be missing a type parameter | |
6 | where | |
7 | T: Copy, | |
8 | //~^ ERROR cannot find type `T` in this scope | |
9 | //~| NOTE not found in this scope | |
10 | { | |
5099ac24 | 11 | fn method(v: Vec<u8>) { v.len(); } |
5099ac24 FG |
12 | } |
13 | ||
14 | fn main() {} |