Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
unreachable-code
/
boolean-negation-in-unreachable-code-7344.rs
blob: 8fd091872c310407fec50d5276fce48ad7094acf [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/7344
//@ run-pass
#![
allow
(
unused_must_use
)]
#![
allow
(
unreachable_code
)]
fn
foo
()
->
bool
{
false
}
fn
bar
()
{
return
;
!
foo
();
}
fn
baz
()
{
return
;
if
""
==
""
{}
}
pub
fn
main
()
{
bar
();
baz
();
}