mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
171 B
Rust
13 lines
171 B
Rust
#![deny(dead_code)]
|
|
|
|
struct MyFoo;
|
|
|
|
impl MyFoo {
|
|
const BAR: u32 = 1;
|
|
//~^ ERROR associated constant `BAR` is never used
|
|
}
|
|
|
|
fn main() {
|
|
let _: MyFoo = MyFoo;
|
|
}
|