summaryrefslogtreecommitdiff
path: root/tests/ui/issues/issue-7344.rs
blob: 9503037723e5be1c629f92b5a89f750061de5b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//@ 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();
}