]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/point-at-type-parameter-definition.rs
Auto merge of #99967 - Mark-Simulacrum:download-llvm-ci, r=jyn514
[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() {}