mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
22 lines
254 B
Rust
22 lines
254 B
Rust
//@ run-pass
|
|
#![allow(unused_must_use)]
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
#![allow(unreachable_code)]
|
|
|
|
fn foo() -> bool { false }
|
|
|
|
fn bar() {
|
|
return;
|
|
!foo();
|
|
}
|
|
|
|
fn baz() {
|
|
return;
|
|
if "" == "" {}
|
|
}
|
|
|
|
pub fn main() {
|
|
bar();
|
|
baz();
|
|
}
|