summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/impl-item-const-semantic-fail.rs
blob: 5d4692f9f14acdcce4fdafffc9ae163cfa3ae839 (plain)
1
2
3
4
5
6
7
fn main() {}

struct X;

impl X {
    const Y: u8; //~ ERROR associated constant in `impl` without body
}