// Check that we require that associated types in an impl are well-formed. #![allow(dead_code)] pub trait MyHash { } pub struct MySet { data: Vec } pub trait Foo { type Bar; } impl Foo for T { type Bar = MySet; //~^ ERROR the trait bound `T: MyHash` is not satisfied } fn main() { }