summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inference/need_type_info/expr-struct-type-relative-gat.rs
blob: b0c0d33975c307fad27667bb14f42c5294d2cee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
trait Foo {
    type Output<T>;

    fn baz();
}

enum Bar<T> {
    Simple {},
    Generic(T),
}

impl Foo for u8 {
    type Output<T> = Bar<T>;
    fn baz() {
        Self::Output::Simple {}; //~ ERROR type annotations needed
    }
}

fn main() {}