mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
23 lines
270 B
Rust
23 lines
270 B
Rust
// 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();
|
|
}
|