Skip to content

Commit

Permalink
use trait_object_dummy_self instead of err
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed May 6, 2020
1 parent f8d394e commit 9ed9200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/closure.rs
Expand Up @@ -178,7 +178,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
match expected_ty.kind {
ty::Dynamic(ref object_type, ..) => {
let sig = object_type.projection_bounds().find_map(|pb| {
let pb = pb.with_self_ty(self.tcx, self.tcx.types.err);
let pb = pb.with_self_ty(self.tcx, self.tcx.types.trait_object_dummy_self);
self.deduce_sig_from_projection(None, &pb)
});
let kind = object_type
Expand Down

0 comments on commit 9ed9200

Please sign in to comment.