From 1a7fb7dc78439a704f024609ce3dc0beb1386552 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Sat, 21 Oct 2017 19:41:27 +0300 Subject: rustc_typeck: use subtyping on the LHS of binops. --- src/test/run-fail/binop-fail-3.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test/run-fail') diff --git a/src/test/run-fail/binop-fail-3.rs b/src/test/run-fail/binop-fail-3.rs index 5be9cd4a9bc..efbc49fbece 100644 --- a/src/test/run-fail/binop-fail-3.rs +++ b/src/test/run-fail/binop-fail-3.rs @@ -12,6 +12,8 @@ fn foo() -> ! { panic!("quux"); } + +#[allow(resolve_trait_on_defaulted_unit)] fn main() { foo() == foo(); // these types wind up being defaulted to () } -- cgit 1.4.1-3-g733a5