about summary refs log tree commit diff
path: root/tests/ui/associated-types/issue-40093.rs
blob: ae922be25d0364b5d24a8a8764fe979b748df51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ check-pass

pub trait Test {
    type Item;
    type Bundle: From<Self::Item>;
}

fn fails<T>()
where
    T: Test<Item = String>,
{
}

fn main() {}