]> git.proxmox.com Git - rustc.git/blob - tests/incremental/const-generics/issue-65623.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / incremental / const-generics / issue-65623.rs
1 // revisions:rpass1
2 pub struct Foo<T, const N: usize>([T; 0]);
3
4 impl<T, const N: usize> Foo<T, {N}> {
5 pub fn new() -> Self {
6 Foo([])
7 }
8 }
9
10 fn main() {
11 let _: Foo<u32, 0> = Foo::new();
12 }