rust/tests/ui/lint/dead-code/lint-dead-code-2.stderr

27 lines
522 B
Plaintext

error: function `dead_fn` is never used
--> $DIR/lint-dead-code-2.rs:22:4
|
LL | fn dead_fn() {}
| ^^^^^^^
|
note: the lint level is defined here
--> $DIR/lint-dead-code-2.rs:2:9
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: function `dead_fn2` is never used
--> $DIR/lint-dead-code-2.rs:25:4
|
LL | fn dead_fn2() {}
| ^^^^^^^^
error: function `main` is never used
--> $DIR/lint-dead-code-2.rs:38:4
|
LL | fn main() {
| ^^^^
error: aborting due to 3 previous errors