diff options
Diffstat (limited to 'tests/incremental/const-generics/issue-65623.rs')
| -rw-r--r-- | tests/incremental/const-generics/issue-65623.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/incremental/const-generics/issue-65623.rs b/tests/incremental/const-generics/issue-65623.rs new file mode 100644 index 00000000000..22bbcbcabed --- /dev/null +++ b/tests/incremental/const-generics/issue-65623.rs @@ -0,0 +1,12 @@ +// revisions:rpass1 +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(); +} |
