]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[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() {}