From: Pierre-Emmanuel Patry <[email protected]>
This new test highlight the parser's behavior around public trait types.
gcc/testsuite/ChangeLog:
* rust/compile/trait_pub_type.rs: New test.
Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
gcc/testsuite/rust/compile/trait_pub_type.rs | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 gcc/testsuite/rust/compile/trait_pub_type.rs
diff --git a/gcc/testsuite/rust/compile/trait_pub_type.rs
b/gcc/testsuite/rust/compile/trait_pub_type.rs
new file mode 100644
index 00000000000..85f6462e3b5
--- /dev/null
+++ b/gcc/testsuite/rust/compile/trait_pub_type.rs
@@ -0,0 +1,6 @@
+fn main() {}
+
+#[cfg(FALSE)]
+trait T {
+ pub type X;
+}
--
2.42.1