mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
16 lines
452 B
Plaintext
16 lines
452 B
Plaintext
error: function `g` is never used
|
|
--> $DIR/allow-dead-code-transitive.rs:4:8
|
|
|
|
|
LL | pub fn g() {}
|
|
| ^
|
|
|
|
|
= 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/allow-dead-code-transitive.rs:2:9
|
|
|
|
|
LL | #![deny(dead_code_pub_in_binary)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|