]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/const-generics/issue-65623.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }