2022-06-09 22:14:24 -05:00
|
|
|
error: associated constant `BAR` is never used
|
2022-06-22 13:33:59 -05:00
|
|
|
--> $DIR/associated-const-dead-code.rs:6:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2023-04-13 07:06:21 -05:00
|
|
|
LL | impl MyFoo {
|
|
|
|
| ---------- associated constant in this implementation
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | const BAR: u32 = 1;
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/associated-const-dead-code.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 07:28:26 -05:00
|
|
|
|