]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trait_selection/traits/error_reporting/suggestions.rs
Increase accuracy of lifetime bound on trait object impl suggestion
[rust.git] / src / librustc_trait_selection / traits / error_reporting / suggestions.rs
index 0a6fb72ca51eae890af70698ac34d8b50d788cf9..e94b44d879533c09284dd0382c3bb982f2518854 100644 (file)
@@ -1706,6 +1706,7 @@ fn note_obligation_cause_code<T>(
             | ObligationCauseCode::IntrinsicType
             | ObligationCauseCode::MethodReceiver
             | ObligationCauseCode::ReturnNoExpression
+            | ObligationCauseCode::UnifyReceiver(_)
             | ObligationCauseCode::MiscObligation => {}
             ObligationCauseCode::SliceOrArrayElem => {
                 err.note("slice and array elements must have `Sized` type");