diff options
| -rw-r--r-- | src/librustc_typeck/check/closure.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/closure.rs b/src/librustc_typeck/check/closure.rs index e53f90ea719..b8def243635 100644 --- a/src/librustc_typeck/check/closure.rs +++ b/src/librustc_typeck/check/closure.rs @@ -663,7 +663,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // be inferring. let ret_ty = ret_coercion.borrow().expected_ty(); let ret_ty = self.inh.infcx.shallow_resolve(ret_ty); - let ret_vid = match ret_ty.sty { + let ret_vid = match ret_ty.kind { ty::Infer(ty::TyVar(ret_vid)) => ret_vid, _ => { span_bug!( |
