blob: 856c0db08f79c26275f3647e9b16593aadc8652a [file] [log] [blame]
trait Trait {
fn do_stuff(&self);
}
struct Hello;
impl Hello {
fn method(&self) {}
}
impl<Hello> Trait for Vec<Hello> {
fn do_stuff(&self) {
self[0].method(); //~ ERROR no method named `method` found for type parameter `Hello` in the current scope
}
}
fn main() {}