mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
17 lines
403 B
Plaintext
17 lines
403 B
Plaintext
error: associated constant `BAR` is never used
|
|
--> $DIR/associated-const-dead-code.rs:6:11
|
|
|
|
|
LL | impl MyFoo {
|
|
| ---------- associated constant in this implementation
|
|
LL | const BAR: u32 = 1;
|
|
| ^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/associated-const-dead-code.rs:1:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|