summary refs log tree commit diff
path: root/src/test/incremental/const-generics/issue-65623.rs
blob: 353e323e67b448dad05424b299d9c7aa9a456fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// revisions:rpass1
#![feature(const_generics)]

pub struct Foo<T, const N: usize>([T; 0]);

impl<T, const N: usize> Foo<T, {N}> {
    pub fn new() -> Self {
        Foo([])
    }
}

fn main() {
    let _: Foo<u32, 0> = Foo::new();
}