mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
24 lines
194 B
Rust
24 lines
194 B
Rust
//@ check-pass
|
|
|
|
#![deny(unused_results)]
|
|
|
|
enum Void {}
|
|
|
|
fn foo() {}
|
|
|
|
fn bar() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
fn baz() -> Void {
|
|
loop {}
|
|
}
|
|
|
|
fn qux() {
|
|
foo();
|
|
bar();
|
|
baz();
|
|
}
|
|
|
|
fn main() {}
|