blob: 2912c4ead7a0a1cb0d0d10eb6ebe699281203289 [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 `Value` (from the trait `Hierarchy`), `ChildKey`
fn data(&self) -> Option<(Self::Value, Self::Children)>;
}
fn main() {}