blob: 1e1863799a5232ccba9e8f7c38d9254ce3e76cea [file] [log] [blame]
trait CollectionFamily {
type Member<T>;
}
fn floatify() {
Box::new(Family) as &dyn CollectionFamily<Member=usize>
//~^ ERROR: missing generics for associated type
//~| ERROR: the trait `CollectionFamily` is not dyn compatible
}
struct Family;
fn main() {}