Skip to content

Commit 9ed9200

Browse files
committed
use trait_object_dummy_self instead of err
1 parent f8d394e commit 9ed9200

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)