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
403 B
Plaintext
Raw Normal View History

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