Skip to content

Commit 1347018

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#97459.
2 parents 8231fee + 3a1aa37 commit 1347018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench_data/glorious_old_parser

+1-1
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
19881988
err.span_suggestion(
19891989
span,
19901990
"declare the type after the parameter binding",
1991-
String::from("<identifier>: <type>"),
1991+
"<identifier>: <type>",
19921992
Applicability::HasPlaceholders,
19931993
);
19941994
} else if require_name && is_trait_item {

0 commit comments

Comments
 (0)