about summary refs log tree commit diff
path: root/tests/ui/associated-inherent-types/substitute-params.rs
blob: 3ccb7028bb9d204a55e0ff9b5391c498a87c7dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//@ check-pass

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

struct S<T>(T);

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

impl<T> S<(T,)> {
    type Un = T;
}

fn main() {
    // Regression test for issue #104240.
    let _: S<()>::P = ();

    // Regression test for issue #107468.
    let _: S<(i32,)>::Un = 0i32;
}