blob: 00b3b29698bed85cb66f2eb7115eff3c82dcbbd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// revisions:rpass1
#![feature(const_generics)]
struct Struct<T>(T);
impl<T, const N: usize> Struct<[T; N]> {
fn f() {}
fn g() { Self::f(); }
}
fn main() {
Struct::<[u32; 3]>::g();
}
|