blob: 3f3c5de9b1404282e1c8ac303eb68875c5f81c53 [file] [log] [blame]
// Test that a partially specified trait object with unspecified associated
// type does not type-check.
trait Foo {
type A;
fn dummy(&self) { }
}
fn bar(x: &dyn Foo) {}
//~^ ERROR the associated type `A` (from trait `Foo`) must be specified
pub fn main() {}