]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-23595-1.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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() {}