Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
reachable
/
diverging-expressions-unreachable-code.rs
blob: bb56987775ff2b5196287a1c3265a88af4e42263 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
unused_must_use
)]
#![
allow
(
unreachable_code
)]
fn
_id
(
x
:
bool
)
->
bool
{
x
}
fn
_call_id
()
{
let
_c
=
panic
!();
_id
(
_c
);
}
fn
_call_id_3
()
{
_id
(
return
)
&&
_id
(
return
);
}
pub
fn
main
()
{}