about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-78671.rs
blob: 1e1863799a5232ccba9e8f7c38d9254ce3e76cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {}