Emit impl difference error for GenericBoundFailure too
This commit is contained in:
parent
1dafe6d1c3
commit
c4f9eb1e5a
5 changed files with 22 additions and 17 deletions
|
@ -46,7 +46,9 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
}
|
||||
if let RegionResolutionError::ConcreteFailure(origin, _, _) = error.clone() {
|
||||
if let RegionResolutionError::ConcreteFailure(origin, _, _)
|
||||
| RegionResolutionError::GenericBoundFailure(origin, _, _) = error.clone()
|
||||
{
|
||||
if let SubregionOrigin::CompareImplTypeObligation {
|
||||
span,
|
||||
item_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue