Skip to content

Commit 037ae40

Browse files
authored
Rollup merge of #71938 - mark-i-m:de-abuse-err-4, r=eddyb
Use trait_object_dummy_self instead of err r? @eddyb cc #70866.
2 parents 4802f09 + 9ed9200 commit 037ae40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
178178
match expected_ty.kind {
179179
ty::Dynamic(ref object_type, ..) => {
180180
let sig = object_type.projection_bounds().find_map(|pb| {
181-
let pb = pb.with_self_ty(self.tcx, self.tcx.types.err);
181+
let pb = pb.with_self_ty(self.tcx, self.tcx.types.trait_object_dummy_self);
182182
self.deduce_sig_from_projection(None, &pb)
183183
});
184184
let kind = object_type

0 commit comments

Comments
 (0)