[gcc r14-8526] gccrs: Add a test to highlight public trait type parsing

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 30 11:56:55 GMT 2024


https://gcc.gnu.org/g:bf47346052c22e067fe49070524bd0fb90c51628

commit r14-8526-gbf47346052c22e067fe49070524bd0fb90c51628
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Thu Nov 2 17:29:16 2023 +0100

    gccrs: Add a test to highlight public trait type parsing
    
    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>

Diff:
---
 gcc/testsuite/rust/compile/trait_pub_type.rs | 6 ++++++
 1 file changed, 6 insertions(+)

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 000000000000..85f6462e3b5a
--- /dev/null
+++ b/gcc/testsuite/rust/compile/trait_pub_type.rs
@@ -0,0 +1,6 @@
+fn main() {}
+
+#[cfg(FALSE)]
+trait T {
+    pub type X;
+}


More information about the Gcc-cvs mailing list