diff --git a/gcc/testsuite/rust/compile/issue-2645.rs b/gcc/testsuite/rust/compile/issue-2645.rs new file mode 100644 index 000000000000..ef1403de1a78 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2645.rs @@ -0,0 +1,4 @@ +// { dg-additional-options "-frust-compile-until=ast" } +pub fn struct_tuple(A { 0: a, 1: ref b }: A) -> i32 { + a +}