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

10 lines
182 B
Rust
Raw Normal View History

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