]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-dead-code.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / associated-consts / associated-const-dead-code.rs
1 #![deny(dead_code)]
2
3 struct MyFoo;
4
5 impl MyFoo {
6     const BAR: u32 = 1;
7     //~^ ERROR associated constant `BAR` is never used
8 }
9
10 fn main() {
11     let _: MyFoo = MyFoo;
12 }