]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-78671.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-78671.rs
1 #![allow(incomplete_features)]
2 #![feature(generic_associated_types)]
3
4 trait CollectionFamily {
5 type Member<T>;
6 //~^ ERROR: missing generics for associated type
7 }
8 fn floatify() {
9 Box::new(Family) as &dyn CollectionFamily<Member=usize>
10 //~^ the trait `CollectionFamily` cannot be made into an object
11 }
12
13 struct Family;
14
15 fn main() {}