1 2 3 4 5 6 7
fn main() {} struct X; impl X { const Y: u8; //~ ERROR associated constant in `impl` without body }