name ParamInTyOfConstArg
This commit is contained in:
parent
52d2c7ac94
commit
cb19cdb711
@ -442,7 +442,7 @@ impl<'a> Resolver<'a> {
|
||||
);
|
||||
err
|
||||
}
|
||||
ResolutionError::ParamInTyOfConstArg(name) => {
|
||||
ResolutionError::ParamInTyOfConstParam(name) => {
|
||||
let mut err = struct_span_err!(
|
||||
self.session,
|
||||
span,
|
||||
|
@ -215,7 +215,7 @@ enum ResolutionError<'a> {
|
||||
/// Error E0128: type parameters with a default cannot use forward-declared identifiers.
|
||||
ForwardDeclaredTyParam, // FIXME(const_generics:defaults)
|
||||
/// ERROR E0770: the type of const parameters must not depend on other generic parameters.
|
||||
ParamInTyOfConstArg(Symbol),
|
||||
ParamInTyOfConstParam(Symbol),
|
||||
/// Error E0735: type parameters with a default cannot use `Self`
|
||||
SelfInTyParamDefault,
|
||||
/// Error E0767: use of unreachable label
|
||||
@ -2514,7 +2514,7 @@ impl<'a> Resolver<'a> {
|
||||
}
|
||||
ConstParamTyRibKind => {
|
||||
if record_used {
|
||||
self.report_error(span, ParamInTyOfConstArg(rib_ident.name));
|
||||
self.report_error(span, ParamInTyOfConstParam(rib_ident.name));
|
||||
}
|
||||
return Res::Err;
|
||||
}
|
||||
@ -2545,7 +2545,7 @@ impl<'a> Resolver<'a> {
|
||||
if record_used {
|
||||
self.report_error(
|
||||
span,
|
||||
ResolutionError::ParamInTyOfConstArg(rib_ident.name),
|
||||
ResolutionError::ParamInTyOfConstParam(rib_ident.name),
|
||||
);
|
||||
}
|
||||
return Res::Err;
|
||||
@ -2587,7 +2587,7 @@ impl<'a> Resolver<'a> {
|
||||
if record_used {
|
||||
self.report_error(
|
||||
span,
|
||||
ResolutionError::ParamInTyOfConstArg(rib_ident.name),
|
||||
ResolutionError::ParamInTyOfConstParam(rib_ident.name),
|
||||
);
|
||||
}
|
||||
return Res::Err;
|
||||
|
Loading…
Reference in New Issue
Block a user