]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-consts/associated-const-public-impl.rs
add tests for 107090
[rust.git] / tests / ui / associated-consts / associated-const-public-impl.rs
1 // run-pass
2
3 mod bar1 {
4     pub use self::bar2::Foo;
5     mod bar2 {
6         pub struct Foo;
7
8         impl Foo {
9             pub const ID: i32 = 1;
10         }
11     }
12 }
13
14 fn main() {
15     assert_eq!(1, bar1::Foo::ID);
16 }