1 #![feature(generic_associated_types)]
10 impl PointerFamily for RcFamily {
11 type Pointer<T> = Rc<T>;
15 enum Node<T, P: PointerFamily> where P::Pointer<Node<T, P>>: Sized {
16 Cons(P::Pointer<Node<T, P>>),
20 let _list: <RcFamily as PointerFamily>::Pointer<Node<i32, RcFamily>>;
21 //~^ ERROR overflow evaluating the requirement `Node<i32, RcFamily>: Sized`