rust/tests/ui/issues/issue-43806.rs
2024-02-16 20:02:50 +00:00

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() {}