]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / functions-closures / fn-help-with-err-generic-is-not-function.rs
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 {
11     fn method(v: Vec<u8>) { v.len(); }
12 }
13
14 fn main() {}