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