Skip to content

Commit d45e030

Browse files
committed
Fix mistake
1 parent 4f2b1c0 commit d45e030

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_typeck/src/check/fn_ctxt

1 file changed

+1
-0
lines changed

compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
816816
hir::LangItem::TryTraitFromOutput
817817
| hir::LangItem::TryTraitFromResidual
818818
| hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark,
819+
_ => traits::ItemObligation(def_id),
819820
},
820821
);
821822
(Res::Def(def_kind, def_id), ty)

0 commit comments

Comments
 (0)