]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-consts/associated-const-use-default.rs
add tests for 107090
[rust.git] / tests / ui / associated-consts / associated-const-use-default.rs
1 // run-pass
2
3 trait Foo {
4     const ID: i32 = 1;
5 }
6
7 impl Foo for i32 {}
8
9 fn main() {
10     assert_eq!(1, <i32 as Foo>::ID);
11 }