Skip to content

Commit

Permalink
Add a test to highlight public trait type parsing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
P-E-P committed Nov 21, 2023
1 parent 889dec2 commit 03c6549
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/testsuite/rust/compile/trait_pub_type.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {}

#[cfg(FALSE)]
trait T {
pub type X;
}

0 comments on commit 03c6549

Please sign in to comment.