From: Pierre-Emmanuel Patry <[email protected]>

gcc/testsuite/ChangeLog:

        * rust/compile/issue-3922.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
 gcc/testsuite/rust/compile/issue-3922.rs | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/issue-3922.rs

diff --git a/gcc/testsuite/rust/compile/issue-3922.rs 
b/gcc/testsuite/rust/compile/issue-3922.rs
new file mode 100644
index 00000000000..3c07f94c295
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-3922.rs
@@ -0,0 +1,12 @@
+struct S(
+    [u8; {
+        {
+            // { dg-error "mismatched types. expected .... but got ..integer.. 
.E0308." "" { target *-*-* } .-1 }
+            struct Z;
+            0
+        }
+        0
+    }],
+);
+
+fn main() {}
-- 
2.50.1

Reply via email to