1 #![feature(associated_type_defaults)]
3 // This used to cause an ICE because assoc. type defaults weren't properly
6 trait Foo<T: Default + ToString> {
7 type Out: Default + ToString + ?Sized = dyn ToString; //~ error: not satisfied
10 impl Foo<u32> for () {} //~ error: not satisfied
11 impl Foo<u64> for () {} //~ error: not satisfied
14 assert_eq!(<() as Foo<u32>>::Out::default().to_string(), "false");