Fix mistake

This commit is contained in:
Esteban Kuber 2021-11-16 03:04:36 +00:00
parent 4f2b1c0650
commit d45e030c04

View File

@ -816,6 +816,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
hir::LangItem::TryTraitFromOutput
| hir::LangItem::TryTraitFromResidual
| hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark,
_ => traits::ItemObligation(def_id),
},
);
(Res::Def(def_kind, def_id), ty)