1 // revisions: base extended
3 //[extended] check-pass
5 #![feature(associated_type_defaults)]
6 #![cfg_attr(extended, feature(generic_associated_types_extended))]
7 #![cfg_attr(extended, allow(incomplete_features))]
10 type A<'a> where Self: 'a;
22 impl<T> Foo for Fooer<T> {
23 type A<'x> = &'x () where T: 'x;
26 fn f(_arg : Box<dyn for<'a> Foo<A<'a> = &'a ()>>) {}
27 //[base]~^ the trait `Foo` cannot be made into an object