]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-consts/associated-const-in-global-const.rs
add tests for 107090
[rust.git] / tests / ui / associated-consts / associated-const-in-global-const.rs
1 // run-pass
2
3 struct Foo;
4
5 impl Foo {
6     const BAR: f32 = 1.5;
7 }
8
9 const FOOBAR: f32 = <Foo>::BAR;
10
11 fn main() {
12     assert_eq!(1.5f32, FOOBAR);
13 }