diff options
| author | Gabriel Smith <gsmith@d3engineering.com> | 2019-11-18 14:57:23 -0500 |
|---|---|---|
| committer | Gabriel Smith <gsmith@d3engineering.com> | 2019-11-18 17:23:22 -0500 |
| commit | eaf8fd056942cd8da2d5d5c844bba145b95f6d1a (patch) | |
| tree | 6105989dbc14bf39472bbbd687691560c0212ee9 /src/test/ui/const-generics/const-generic-array-wrapper.rs | |
| parent | fb6cfde5bad603193d1ae42786a725bd5dc01a40 (diff) | |
test: const-generics: Update tests removing unrequired braces
Braces were left in cases where generic args were in the generic const paths.
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 } } |
