mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Fix mistake
This commit is contained in:
parent
4f2b1c0650
commit
d45e030c04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user