]> git.lizzy.rs Git - rust.git/blob - src/test/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / 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() {}