blob: 018ce0459fd6f21794251af2a8bf3aab56bf31f4 [file] [log] [blame]
trait Foo {
fn foo(&self);
}
trait Bar {}
fn do_stuff<T : Bar>(t : T) {
t.foo() //~ ERROR no method named `foo` found
}
fn main() {}