summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/auxiliary/missing-assoc-fn-applicable-suggestions.rs
blob: b026035a6a1689ad4dabffaa10e2cdbc9a243261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub trait TraitB {
    type Item;
}

pub trait TraitA<A> {
    type Type;

    fn bar<T>(_: T) -> Self;

    fn baz<T>(_: T) -> Self
    where
        T: TraitB,
        <T as TraitB>::Item: Copy;

    const A: usize;
}