Skip to content

Commit

Permalink
Rollup merge of rust-lang#100643 - TaKO8Ki:point-at-type-parameter-sh…
Browse files Browse the repository at this point in the history
…adowing-another-type, r=estebank

Point at a type parameter shadowing another type

This patch fixes a part of rust-lang#97459.
  • Loading branch information
matthiaskrgr authored Aug 18, 2022
2 parents 8231fee + 3a1aa37 commit 1347018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench_data/glorious_old_parser
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1347018

Please sign in to comment.