]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/point-at-type-parameter-definition.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / typeck / point-at-type-parameter-definition.rs
1 trait Trait {
2     fn do_stuff(&self);
3 }
4
5 struct Hello;
6
7 impl Hello {
8     fn method(&self) {}
9 }
10
11 impl<Hello> Trait for Vec<Hello> {
12     fn do_stuff(&self) {
13         self[0].method(); //~ ERROR no method named `method` found for type parameter `Hello` in the current scope
14     }
15 }
16
17 fn main() {}