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>
This commit is contained in:
parent
ceed844b52
commit
bf47346052
1 changed files with 6 additions and 0 deletions
6
gcc/testsuite/rust/compile/trait_pub_type.rs
Normal file
6
gcc/testsuite/rust/compile/trait_pub_type.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
fn main() {}
|
||||
|
||||
#[cfg(FALSE)]
|
||||
trait T {
|
||||
pub type X;
|
||||
}
|
Loading…
Add table
Reference in a new issue