summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-23595-1.rs
blob: 483c205f42d6daa3a109942b1cd7e715cbcc5d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(associated_type_defaults)]

use std::ops::Index;

trait Hierarchy {
    type Value;
    type ChildKey;
    type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
    //~^ ERROR: the value of the associated types

    fn data(&self) -> Option<(Self::Value, Self::Children)>;
}

fn main() {}