rust/tests/ui/lint/dead-code/unused-assoc-fns.stderr
Ezra Shaw 03cf0e949f
refactor: emit "unused assoc fn" in lexical order
with repect to other dead code lints
2023-04-13 20:53:32 +12:00

28 lines
592 B
Plaintext

error: associated function `one` is never used
--> $DIR/unused-assoc-fns.rs:6:8
|
LL | fn one() {}
| ^^^
|
note: the lint level is defined here
--> $DIR/unused-assoc-fns.rs:1:9
|
LL | #![deny(unused)]
| ^^^^^^
= note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
error: method `two` is never used
--> $DIR/unused-assoc-fns.rs:9:8
|
LL | fn two(&self) {}
| ^^^
error: method `three` is never used
--> $DIR/unused-assoc-fns.rs:18:8
|
LL | fn three(&self) {
| ^^^^^
error: aborting due to 3 previous errors