We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36076ec commit 322c4bdCopy full SHA for 322c4bd
compiler/rustc_hir_analysis/src/check/compare_impl_item/refine.rs
@@ -64,6 +64,10 @@ pub(super) fn check_refining_return_position_impl_trait_in_trait<'tcx>(
64
return;
65
};
66
67
+ if hidden_tys.items().any(|(_, &ty)| ty.skip_binder().references_error()) {
68
+ return;
69
+ }
70
+
71
let mut collector = ImplTraitInTraitCollector { tcx, types: FxIndexSet::default() };
72
trait_m_sig.visit_with(&mut collector);
73
0 commit comments