rust/tests/ui/binop/binop-fail-3.rs
2023-01-11 09:32:08 +00:00

12 lines
187 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 ()
}