2017-08-11 15:43:33 -05:00
|
|
|
// run-pass
|
|
|
|
|
|
|
|
#![deny(unused_results)]
|
|
|
|
|
2017-08-11 23:52:16 -05:00
|
|
|
enum Void {}
|
|
|
|
|
2017-08-11 15:43:33 -05:00
|
|
|
fn foo() {}
|
|
|
|
|
|
|
|
fn bar() -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2017-08-11 23:52:16 -05:00
|
|
|
fn baz() -> Void {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2017-08-11 15:43:33 -05:00
|
|
|
fn qux() {
|
|
|
|
foo();
|
|
|
|
bar();
|
2017-08-11 23:52:16 -05:00
|
|
|
baz();
|
2017-08-11 15:43:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|