summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/binop-fail-3.rs
blob: 49f635e0c11d6de43bbd4dcbdd494584de1ba333 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-fail
// error-pattern:quux
// ignore-emscripten no processes

fn foo() -> ! {
    panic!("quux");
}

fn main() {
    foo() == foo(); // these types wind up being defaulted to ()
}