From 1629fb770e21c7e7fd4c478f5074590d5c9e6829 Mon Sep 17 00:00:00 2001 From: adamrk Date: Sat, 20 Jun 2020 17:00:57 +0200 Subject: Push obligation instead of matching on solution --- crates/ra_hir_ty/src/tests/traits.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_hir_ty/src/tests') diff --git a/crates/ra_hir_ty/src/tests/traits.rs b/crates/ra_hir_ty/src/tests/traits.rs index dd5bdd2d0..961be4abd 100644 --- a/crates/ra_hir_ty/src/tests/traits.rs +++ b/crates/ra_hir_ty/src/tests/traits.rs @@ -3028,7 +3028,7 @@ fn infer_box_fn_arg() { 656..667 '&self.inner': &*mut T 657..661 'self': &Box 657..667 'self.inner': *mut T - 812..957 '{ ... }': FnOnce::Output,)>, ({unknown},)> + 812..957 '{ ... }': FnOnce::Output,)>, (&Option,)> 834..835 's': Option 838..850 'Option::None': Option 872..873 'f': Box,)>> @@ -3037,7 +3037,7 @@ fn infer_box_fn_arg() { 913..915 'ps': {unknown} 917..919 '{}': () 938..939 'f': Box,)>> - 938..943 'f(&s)': FnOnce::Output,)>, ({unknown},)> + 938..943 'f(&s)': FnOnce::Output,)>, (&Option,)> 940..942 '&s': &Option 941..942 's': Option "### @@ -3105,9 +3105,9 @@ fn infer_dyn_fn_output() { 937..946 'box(|| 5)': Box<|| -> i32> 941..945 '|| 5': || -> i32 944..945 '5': i32 - 968..969 'x': i32 + 968..969 'x': FnOnce::Output, ()> 972..973 'f': Box> - 972..975 'f()': i32 + 972..975 'f()': FnOnce::Output, ()> "### ); } -- cgit v1.2.3