mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Rollup merge of #100643 - TaKO8Ki:point-at-type-parameter-shadowing-another-type, r=estebank
Point at a type parameter shadowing another type This patch fixes a part of #97459.
This commit is contained in:
commit
134701885d
1 changed files with 1 additions and 1 deletions
|
@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
|
||||||
err.span_suggestion(
|
err.span_suggestion(
|
||||||
span,
|
span,
|
||||||
"declare the type after the parameter binding",
|
"declare the type after the parameter binding",
|
||||||
String::from("<identifier>: <type>"),
|
"<identifier>: <type>",
|
||||||
Applicability::HasPlaceholders,
|
Applicability::HasPlaceholders,
|
||||||
);
|
);
|
||||||
} else if require_name && is_trait_item {
|
} else if require_name && is_trait_item {
|
||||||
|
|
Loading…
Reference in a new issue