]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/associated-consts/associated-const-inherent-impl.rs
Auto merge of #61361 - estebank:infer-type, r=varkor
[rust.git] / src / test / run-pass / 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 }