diff --git a/gcc/testsuite/rust/compile/issue-2709.rs b/gcc/testsuite/rust/compile/issue-2709.rs new file mode 100644 index 000000000000..42fe7af230d9 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2709.rs @@ -0,0 +1,8 @@ +fn main() {} + +struct S; + +impl S { + const Y: u8; + // { dg-error "associated constant in .impl. without body" "" { target *-*-* } .-1 } +}