about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com>2021-10-18 04:22:43 -0700
committerNathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com>2021-10-18 04:22:43 -0700
commitd25b4eeefbcb6e2755b0843b0a66de0f5a744460 (patch)
tree7474462e24f742536258c45ae29ef7968ca93c14
parent5b78907be7b67cfb598301e20a9ebd500a494c41 (diff)
One more test
-rw-r--r--tests/ui/trailing_zero_sized_array_without_repr.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/trailing_zero_sized_array_without_repr.rs b/tests/ui/trailing_zero_sized_array_without_repr.rs
index 6ac124c8b34..5b12a882aa7 100644
--- a/tests/ui/trailing_zero_sized_array_without_repr.rs
+++ b/tests/ui/trailing_zero_sized_array_without_repr.rs
@@ -167,6 +167,11 @@ struct ConstParamNonZeroDefault<const N: usize = 1> {
     last: [usize; N],
 }
 
+struct TwoGenericParams<T, const N: usize> {
+    field: i32,
+    last: [T; N],
+}
+
 type A = ConstParamZeroDefault;
 type B = ConstParamZeroDefault<0>;
 type C = ConstParamNoDefault<0>;