[COMMITTED 002/101] gccrs: Add a test to highlight public trait type parsing
arthur.cohen@embecosm.com
arthur.cohen@embecosm.com
Tue Jan 30 12:06:18 GMT 2024
From: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
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 <pierre-emmanuel.patry@embecosm.com>
---
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
More information about the Gcc-rust
mailing list