]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-23595-1.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / associated-types / issue-23595-1.rs
1 #![feature(associated_type_defaults)]
2
3 use std::ops::Index;
4
5 trait Hierarchy {
6     type Value;
7     type ChildKey;
8     type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
9     //~^ ERROR: the value of the associated types
10
11     fn data(&self) -> Option<(Self::Value, Self::Children)>;
12 }
13
14 fn main() {}