Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
fail-no-dead-code.rs
blob: 2b69985d33d46bebc9ac02c92fd98f5ac8fcd3d6 [
file
] [
log
] [
blame
]
#![
deny
(
dead_code
)]
#![
allow
(
unreachable_code
)]
fn
foo
()
{
//~ ERROR function is never used
// none of these should have any dead_code exposed to the user
panic
!();
panic
!(
"foo"
);
panic
!(
"bar {}"
,
"baz"
)
}
fn
main
()
{}