diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs b/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs index 9e4b88e37468..8cad4fc707ea 100644 --- a/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs +++ b/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs @@ -633,7 +633,7 @@ fn try_suggest_return_impl_trait( }) .collect::, _>>(); - let Ok(where_predicates) = where_predicates else { return }; + let Ok(where_predicates) = where_predicates else { return }; // now get all predicates in the same types as the where bounds, so we can chain them let predicates_from_where =