summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/associated-const-dead-code.stderr
blob: 7e485a314c5407e258fa2374fbc5d07a4953f8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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