]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/const-generics/issue-65623.rs
Rollup merge of #103000 - wesleywiser:suggest_libname, r=compiler-errors
[rust.git] / src / test / 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 }