Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
reachable
/
diverging-expressions-unreachable-code.rs
blob: bb56987775ff2b5196287a1c3265a88af4e42263 [
file
]
//@ 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
()
{}