Suggest copying trait associated type bounds on lifetime error
This commit is contained in:
parent
30b3f35c42
commit
3d19c8defd
12 changed files with 163 additions and 28 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue