]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | error: associated items `one`, `two`, `CONSTANT`, `Type`, and `three` are never used |
2 | --> $DIR/unused-assoc-fns.rs:8:8 | |
3 | | | |
4 | LL | impl Foo { | |
5 | | -------- associated items in this implementation | |
6 | LL | fn one() {} | |
7 | | ^^^ | |
8 | ... | |
9 | LL | fn two(&self) {} | |
10 | | ^^^ | |
11 | ... | |
12 | LL | const CONSTANT: usize = 5; | |
13 | | ^^^^^^^^ | |
14 | ... | |
15 | LL | type Type = usize; | |
16 | | ^^^^ | |
17 | LL | | |
18 | LL | fn three(&self) { | |
19 | | ^^^^^ | |
20 | | | |
21 | note: the lint level is defined here | |
22 | --> $DIR/unused-assoc-fns.rs:3:9 | |
23 | | | |
24 | LL | #![deny(unused)] | |
25 | | ^^^^^^ | |
26 | = note: `#[deny(dead_code)]` implied by `#[deny(unused)]` | |
27 | ||
28 | error: aborting due to previous error | |
29 |