]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-78671.rs
Fix border radius for doc code blocks in rustdoc
[rust.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() {}