https://gcc.gnu.org/g:84baeaf6277aa135682aab2c5753705ddc6458be
commit r16-4851-g84baeaf6277aa135682aab2c5753705ddc6458be Author: Pierre-Emmanuel Patry <[email protected]> Date: Tue Sep 2 21:28:00 2025 +0200 gccrs: Add test to confirm Rust-GCC/gccrs#3922 fix gcc/testsuite/ChangeLog: * rust/compile/issue-3922.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <[email protected]> Diff: --- gcc/testsuite/rust/compile/issue-3922.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gcc/testsuite/rust/compile/issue-3922.rs b/gcc/testsuite/rust/compile/issue-3922.rs new file mode 100644 index 000000000000..3c07f94c295f --- /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() {}
