Skip to content

Commit

Permalink
Add a regression test for global path parsing
Browse files Browse the repository at this point in the history
Add a new test to highlight fix for #2649.

gcc/testsuite/ChangeLog:

	* rust/compile/parse_global_path_generic.rs: New test.
  • Loading branch information
P-E-P authored and CohenArthur committed Oct 16, 2023
1 parent a87e147 commit 522528b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc/testsuite/rust/compile/parse_global_path_generic.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// { dg-additional-options "-frust-compile-until=ast" }
pub fn foo<D: ::std::fmt::Debug>(_d: D) -> u32 {
0
}

0 comments on commit 522528b

Please sign in to comment.