summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-43806.rs
blob: 8c8cccfb2bb820ec91793c74a73071bfbb2b8be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// check-pass

#![deny(unused_results)]

enum Void {}

fn foo() {}

fn bar() -> ! {
    loop {}
}

fn baz() -> Void {
    loop {}
}

fn qux() {
    foo();
    bar();
    baz();
}

fn main() {}