Skip to content

Commit

Permalink
Add a new regression test for issue 2665
Browse files Browse the repository at this point in the history
Highlight issue 2665's fix for const with no value expression.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-2665.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Oct 23, 2023
1 parent 4f0da0e commit eb393ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/testsuite/rust/compile/issue-2665.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {}

#[cfg(FALSE)]
impl X {
const Y: u8;
}

0 comments on commit eb393ac

Please sign in to comment.