Generalize E0401
This commit is contained in:
parent
3cd97ed3c3
commit
b00e408e61
35 changed files with 141 additions and 153 deletions
|
@ -1229,10 +1229,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
if let Some(span) = finalize {
|
||||
self.report_error(
|
||||
span,
|
||||
ResolutionError::GenericParamsFromOuterFunction(
|
||||
res,
|
||||
has_generic_params,
|
||||
),
|
||||
ResolutionError::GenericParamsFromOuterItem(res, has_generic_params),
|
||||
);
|
||||
}
|
||||
return Res::Err;
|
||||
|
@ -1296,10 +1293,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
if let Some(span) = finalize {
|
||||
self.report_error(
|
||||
span,
|
||||
ResolutionError::GenericParamsFromOuterFunction(
|
||||
res,
|
||||
has_generic_params,
|
||||
),
|
||||
ResolutionError::GenericParamsFromOuterItem(res, has_generic_params),
|
||||
);
|
||||
}
|
||||
return Res::Err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue