trait CollectionFamily { type Member; } fn floatify() { Box::new(Family) as &dyn CollectionFamily //~^ ERROR: missing generics for associated type //~| ERROR: the trait `CollectionFamily` is not dyn compatible } struct Family; fn main() {}