Sign in
rust
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
lint
/
dead-code-pub-in-binary
/
allow-lint.rs
blob: 5daf188542d8ffa504683c1d4811ea82c62eef15 [
file
] [
edit
]
#![
deny
(
dead_code
)]
#![
allow
(
dead_code_pub_in_binary
)]
pub
fn
unused_pub_fn
()
{
helper
();
}
fn
helper
()
{}
fn
unused_priv_fn
()
{}
//~ ERROR function `unused_priv_fn` is never used
fn
main
()
{}