Deny defaults for higher-ranked generic parameters
This commit is contained in:
parent
88d69b72b4
commit
3d0297a1e1
12 changed files with 133 additions and 66 deletions
|
@ -397,8 +397,8 @@ pub enum BadReturnTypeNotation {
|
|||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(ast_lowering_default_parameter_in_binder)]
|
||||
pub(crate) struct UnexpectedDefaultParameterInBinder {
|
||||
#[diag(ast_lowering_generic_param_default_in_binder)]
|
||||
pub(crate) struct GenericParamDefaultInBinder {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue