]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-78671.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / generic-associated-types / issue-78671.rs
1 #![feature(generic_associated_types)]
2
3 trait CollectionFamily {
4     type Member<T>;
5 }
6 fn floatify() {
7     Box::new(Family) as &dyn CollectionFamily<Member=usize>
8     //~^ ERROR: missing generics for associated type
9     //~| ERROR: the trait `CollectionFamily` cannot be made into an object
10 }
11
12 struct Family;
13
14 fn main() {}