rust/src/test/run-fail/binop-fail-3.rs

10 lines
182 B
Rust
Raw Normal View History

// error-pattern:quux
2016-05-27 02:39:36 +00:00
fn foo() -> ! {
panic!("quux");
}
#[allow(resolve_trait_on_defaulted_unit)]
fn main() {
foo() == foo(); // these types wind up being defaulted to ()
}