]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-inherent-impl.rs
Rollup merge of #105983 - compiler-errors:issue-105981, r=tmiasko
[rust.git] / src / test / ui / associated-consts / associated-const-inherent-impl.rs
1 // run-pass
2
3 struct Foo;
4
5 impl Foo {
6     const ID: i32 = 1;
7 }
8
9 fn main() {
10     assert_eq!(1, Foo::ID);
11 }