]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-self-type.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / associated-consts / associated-const-self-type.rs
1 // run-pass
2
3 trait MyInt {
4     const ONE: Self;
5 }
6
7 impl MyInt for i32 {
8     const ONE: i32 = 1;
9 }
10
11 fn main() {
12     assert_eq!(1, <i32>::ONE);
13 }