1
Fork 0

Suggest copying trait associated type bounds on lifetime error

This commit is contained in:
Jack Huey 2022-01-08 23:30:19 -05:00
parent 30b3f35c42
commit 3d19c8defd
12 changed files with 163 additions and 28 deletions

View file

@ -1932,7 +1932,8 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
| ObligationCauseCode::AwaitableExpr(_)
| ObligationCauseCode::ForLoopIterator
| ObligationCauseCode::QuestionMark
| ObligationCauseCode::LetElse => {}
| ObligationCauseCode::LetElse
| ObligationCauseCode::CheckAssociatedTypeBounds { .. } => {}
ObligationCauseCode::SliceOrArrayElem => {
err.note("slice and array elements must have `Sized` type");
}