// Tests that a default impl still has to have a WF trait ref. #![feature(specialization)] trait Foo<'a, T: Eq + 'a> { } default impl Foo<'static, U> for () {} //~^ ERROR the trait bound `U: std::cmp::Eq` is not satisfied fn main(){}