fix name resolution for param defaults
This commit is contained in:
parent
d7c3386414
commit
259a368e9e
15 changed files with 141 additions and 104 deletions
|
@ -472,17 +472,6 @@ impl<'a> Resolver<'a> {
|
|||
);
|
||||
err
|
||||
}
|
||||
ResolutionError::ParamInAnonConstInTyDefault(name) => {
|
||||
let mut err = self.session.struct_span_err(
|
||||
span,
|
||||
"constant values inside of type parameter defaults must not depend on generic parameters",
|
||||
);
|
||||
err.span_label(
|
||||
span,
|
||||
format!("the anonymous constant must not depend on the parameter `{}`", name),
|
||||
);
|
||||
err
|
||||
}
|
||||
ResolutionError::ParamInNonTrivialAnonConst { name, is_type } => {
|
||||
let mut err = self.session.struct_span_err(
|
||||
span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue