Skip to content

Commit 5841021

Browse files
committed
conflict fixes
1 parent e8b8f30 commit 5841021

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/infer/error_reporting/named_anon_conflict.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
107107
// FIXME(#42703) - Need to handle certain cases here.
108108
let ret_ty = self.tcx.type_of(scope_def_id);
109109
match ret_ty.sty {
110-
ty::TyFnDef(_, _, sig) => {
110+
ty::TyFnDef(_, _) => {
111+
let sig = ret_ty.fn_sig(self.tcx);
111112
let late_bound_regions = self.tcx
112113
.collect_referenced_late_bound_regions(&sig.output());
113114
if late_bound_regions.iter().any(|r| *r == br) {

0 commit comments

Comments
 (0)