summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-consts/associated-const-no-item.rs
blob: 024d14e21b5fd2efe9185d3b67b162e76d720dce (plain)
1
2
3
4
5
6
7
8
9
10
trait Foo {
    const ID: i32;
}

const X: i32 = <i32>::ID;
//~^ ERROR no associated item named `ID` found

fn main() {
    assert_eq!(1, X);
}