Files
rust/tests/ui/lint/dead-code-pub-in-binary/interaction-allow-dead-code.stderr
T

16 lines
490 B
Plaintext

error: function `unused_pub_fn` is never used
--> $DIR/interaction-allow-dead-code.rs:4:8
|
LL | pub fn unused_pub_fn() {}
| ^^^^^^^^^^^^^
|
= note: in libraries, `pub` items can be used by dependent crates; in binaries, they cannot, so this `pub` item is unused
note: the lint level is defined here
--> $DIR/interaction-allow-dead-code.rs:2:9
|
LL | #![deny(dead_code_pub_in_binary)]
| ^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error