From bf47346052c22e067fe49070524bd0fb90c51628 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Thu, 2 Nov 2023 17:29:16 +0100 Subject: [PATCH] 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 --- 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 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; +} -- 2.47.2