trait Trait { fn do_stuff(&self); } struct Hello; impl Hello { fn method(&self) {} } impl Trait for Vec { fn do_stuff(&self) { self[0].method(); //~ ERROR no method named `method` found for type parameter `Hello` in the current scope } } fn main() {}