2023-04-13 06:38:52 -05:00
|
|
|
error: associated items `one`, `two`, `CONSTANT`, `Type`, and `three` are never used
|
|
|
|
--> $DIR/unused-assoc-fns.rs:8:8
|
2023-04-12 15:48:50 -05:00
|
|
|
|
|
2023-04-13 05:42:47 -05:00
|
|
|
LL | impl Foo {
|
2023-04-13 06:38:52 -05:00
|
|
|
| -------- associated items in this implementation
|
2023-04-12 15:48:50 -05:00
|
|
|
LL | fn one() {}
|
|
|
|
| ^^^
|
2023-04-13 05:42:47 -05:00
|
|
|
...
|
|
|
|
LL | fn two(&self) {}
|
|
|
|
| ^^^
|
|
|
|
...
|
2023-04-13 06:38:52 -05:00
|
|
|
LL | const CONSTANT: usize = 5;
|
|
|
|
| ^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | type Type = usize;
|
|
|
|
| ^^^^
|
|
|
|
LL |
|
2023-04-13 05:42:47 -05:00
|
|
|
LL | fn three(&self) {
|
|
|
|
| ^^^^^
|
2023-04-12 15:48:50 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-04-13 06:38:52 -05:00
|
|
|
--> $DIR/unused-assoc-fns.rs:3:9
|
2023-04-12 15:48:50 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-04-12 15:48:50 -05:00
|
|
|
|