diff options
Diffstat (limited to 'src/test/incremental/const-generics/issue-61516.rs')
-rw-r--r-- | src/test/incremental/const-generics/issue-61516.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/incremental/const-generics/issue-61516.rs b/src/test/incremental/const-generics/issue-61516.rs deleted file mode 100644 index c781484d1..000000000 --- a/src/test/incremental/const-generics/issue-61516.rs +++ /dev/null @@ -1,14 +0,0 @@ -// revisions:rpass1 - -struct FakeArray<T, const N: usize>(T); - -impl<T, const N: usize> FakeArray<T, N> { - fn len(&self) -> usize { - N - } -} - -fn main() { - let fa = FakeArray::<u32, { 32 }>(1); - assert_eq!(fa.len(), 32); -} |