summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/struct-generics.rs
blob: 8952b379173080a0f6a5bb62ae42c8b91cc9a4d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

#![feature(inherent_associated_types)]
#![allow(incomplete_features)]

struct S<T>(T);

impl<T> S<T> {
    type P = T;
}

fn main() {
    type A = S<()>::P;
    let _: A = ();
}