// Test that associated types in trait objects are not considered to be // constrained. #![feature(min_specialization)] trait Specializable { fn f(); } trait B { type Y; } trait C { type Y; } impl Specializable for A { default fn f() {} } impl<'a, T> Specializable for dyn B + 'a { //~^ ERROR specializing impl repeats parameter `T` fn f() {} } impl<'a, T> Specializable for dyn C + 'a { //~^ ERROR specializing impl repeats parameter `T` fn f() {} } fn main() {}