Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
never_type
/
never-assign-dead-code.rs
blob: 5c1300c715128e180a0ebc746fb98dfce7568681 [
file
] [
log
] [
blame
]
// Test that an assignment of type ! makes the rest of the block dead code.
// check-pass
#![
warn
(
unused
)]
fn
main
()
{
let
x
:
!
=
panic
!(
"aah"
);
//~ WARN unused
drop
(
x
);
//~ WARN unreachable
//~^ WARN unreachable
}