From: Pierre-Emmanuel Patry Date: Thu, 2 Nov 2023 16:29:16 +0000 (+0100) Subject: gccrs: Add a test to highlight public trait type parsing X-Git-Tag: basepoints/gcc-15~1613 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf47346052c22e067fe49070524bd0fb90c51628;p=thirdparty%2Fgcc.git 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 --- 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; +}