blob: 579fde34f53b4bb177959873c97072e83c155726 [file] [log] [blame]
#![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() {}