Change type param -> generic param
This commit is contained in:
parent
ee5ed4a88d
commit
da189d9514
6 changed files with 60 additions and 23 deletions
|
@ -502,14 +502,14 @@ impl<'a> Resolver<'a> {
|
|||
|
||||
err
|
||||
}
|
||||
ResolutionError::SelfInTyParamDefault => {
|
||||
ResolutionError::SelfInGenericParamDefault => {
|
||||
let mut err = struct_span_err!(
|
||||
self.session,
|
||||
span,
|
||||
E0735,
|
||||
"type parameters cannot use `Self` in their defaults"
|
||||
"generic parameters cannot use `Self` in their defaults"
|
||||
);
|
||||
err.span_label(span, "`Self` in type parameter default".to_string());
|
||||
err.span_label(span, "`Self` in generic parameter default".to_string());
|
||||
err
|
||||
}
|
||||
ResolutionError::UnreachableLabel { name, definition_span, suggestion } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue