mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
28 lines
694 B
Plaintext
28 lines
694 B
Plaintext
error: function `unused_pub_fn` is never used
|
|
--> $DIR/basic.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/basic.rs:2:9
|
|
|
|
|
LL | #![deny(dead_code_pub_in_binary)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: function `unused_priv_fn` is never used
|
|
--> $DIR/basic.rs:8:4
|
|
|
|
|
LL | fn unused_priv_fn() {}
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/basic.rs:1:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|