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; +}