summaryrefslogtreecommitdiffstats
path: root/src/test/ui/wf/wf-complex-assoc-type.rs
blob: c3811e82394292b158ae332608a33437db39d9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
trait MyTrait {}
struct AssertMyTrait<T: MyTrait>(T);

trait HelperTrait {
    type MyItem;
}

impl HelperTrait for () {
    type MyItem = Option<((AssertMyTrait<bool>, u8))>; //~ ERROR the trait bound
}

fn main() {}