1 2 3 4 5 6 7 8
fn main() {} struct S; impl S { const Y: u8; // { dg-error "associated constant in .impl. without body" "" { target *-*-* } .-1 } }