rust/src/test/ui/issues/issue-43806.rs
2018-12-25 21:08:33 -07:00

24 lines
191 B
Rust

// run-pass
#![deny(unused_results)]
enum Void {}
fn foo() {}
fn bar() -> ! {
loop {}
}
fn baz() -> Void {
loop {}
}
fn qux() {
foo();
bar();
baz();
}
fn main() {}