From eb393ac7a90b4b65fd3b0f66b666bf8b7c139c92 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 23 Oct 2023 17:16:25 +0200 Subject: [PATCH] Add a new regression test for issue 2665 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 --- gcc/testsuite/rust/compile/issue-2665.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-2665.rs diff --git a/gcc/testsuite/rust/compile/issue-2665.rs b/gcc/testsuite/rust/compile/issue-2665.rs new file mode 100644 index 000000000000..3ee8e7b22ca0 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2665.rs @@ -0,0 +1,6 @@ +fn main() {} + +#[cfg(FALSE)] +impl X { + const Y: u8; +}