rust/tests/ui/binop/binop-fail-3.rs
2024-02-16 20:02:50 +00:00

11 lines
190 B
Rust

//@ run-fail
//@ error-pattern:quux
//@ ignore-emscripten no processes
fn foo() -> ! {
panic!("quux");
}
fn main() {
foo() == foo(); // these types wind up being defaulted to ()
}