rust/tests/ui/issues/issue-7344.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
252 B
Rust
Raw Normal View History

// 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();
}