diff --git a/compiler/rustc_trait_selection/src/error_reporting/infer/note_and_explain.rs b/compiler/rustc_trait_selection/src/error_reporting/infer/note_and_explain.rs index ccf5c131b6fe..212664b07ed3 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/infer/note_and_explain.rs +++ b/compiler/rustc_trait_selection/src/error_reporting/infer/note_and_explain.rs @@ -606,6 +606,7 @@ fn suggest_constraint( ty: Ty<'tcx>, ) -> bool { let tcx = self.tcx; + // FIXME(inherent_associated_types): Extend this to support `ty::Inherent`, too. if !matches!(proj_ty.kind, ty::AliasTyKind::Projection { .. }) { return false; }