point out unblamed constraints from Copy
/Sized
bounds in region errors
This commit is contained in:
parent
2c5815b285
commit
1b2281a493
5 changed files with 31 additions and 1 deletions
|
@ -554,6 +554,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
|
|||
}
|
||||
|
||||
self.add_placeholder_from_predicate_note(&mut diag, &path);
|
||||
self.add_sized_or_copy_bound_info(&mut diag, category, &path);
|
||||
|
||||
self.buffer_error(diag);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue