rust/src/test/ui/issues/issue-19482.rs
2018-12-25 21:08:33 -07:00

14 lines
271 B
Rust

// 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: &Foo) {}
//~^ ERROR the associated type `A` (from the trait `Foo`) must be specified
pub fn main() {}