diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-11-02 17:29:16 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-30 12:36:42 +0100 |
commit | bf47346052c22e067fe49070524bd0fb90c51628 (patch) | |
tree | e8d70be6be6dced774f2ea1b824295a67416569e | |
parent | ceed844b5284aeabbdfe25ccf099e7ebeeb14a9b (diff) | |
download | gcc-bf47346052c22e067fe49070524bd0fb90c51628.zip gcc-bf47346052c22e067fe49070524bd0fb90c51628.tar.gz gcc-bf47346052c22e067fe49070524bd0fb90c51628.tar.bz2 |
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>
-rw-r--r-- | gcc/testsuite/rust/compile/trait_pub_type.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 0000000..85f6462 --- /dev/null +++ b/gcc/testsuite/rust/compile/trait_pub_type.rs @@ -0,0 +1,6 @@ +fn main() {} + +#[cfg(FALSE)] +trait T { + pub type X; +} |