diff options
Diffstat (limited to 'src/test/ui/const-generics/const-generic-array-wrapper.rs')
| -rw-r--r-- | src/test/ui/const-generics/const-generic-array-wrapper.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/const-generics/const-generic-array-wrapper.rs b/src/test/ui/const-generics/const-generic-array-wrapper.rs index adffe32d67a..56a58c582f6 100644 --- a/src/test/ui/const-generics/const-generic-array-wrapper.rs +++ b/src/test/ui/const-generics/const-generic-array-wrapper.rs @@ -3,11 +3,11 @@ #![feature(const_generics)] //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash -struct Foo<T, const N: usize>([T; {N}]); +struct Foo<T, const N: usize>([T; N]); -impl<T, const N: usize> Foo<T, {N}> { +impl<T, const N: usize> Foo<T, N> { fn foo(&self) -> usize { - {N} + N } } |
