rust/tests/ui/associated-consts/associated-const-dead-code.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
405 B
Plaintext
Raw Permalink Normal View History

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)]
| ^^^^^^^^^
error: aborting due to 1 previous error
2018-08-08 07:28:26 -05:00