about summary refs log tree commit diff
path: root/tests/incremental/const-generics/issue-61338.rs
blob: 2152667be3a377709f51647190cc3ad2eedf2e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ revisions:rpass1

struct Struct<T>(T);

impl<T, const N: usize> Struct<[T; N]> {
    fn f() {}
    fn g() { Self::f(); }
}

fn main() {
    Struct::<[u32; 3]>::g();
}