Sign in
rust
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
lint
/
dead-code
/
with-core-crate.rs
blob: 9ccb6aecb75fb3c89e89d6d28d0b7fd7760edeb9 [
file
] [
log
] [
blame
] [
edit
]
#![
deny
(
dead_code
)]
#![
allow
(
unreachable_code
)]
extern
crate core
;
fn
foo
()
{
//~ ERROR function `foo` is never used
// none of these should have any dead_code exposed to the user
panic
!();
panic
!(
"foo"
);
panic
!(
"bar {}"
,
"baz"
)
}
fn
main
()
{}