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:
Matthias Krüger 2022-08-18 05:10:46 +02:00 committed by GitHub
commit 9c4c6d2b44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
err.span_suggestion(
span,
"declare the type after the parameter binding",
String::from("<identifier>: <type>"),
"<identifier>: <type>",
Applicability::HasPlaceholders,
);
} else if require_name && is_trait_item {