tweak suggestion

This commit is contained in:
yukang 2022-09-16 01:09:26 +08:00
parent 98e20c097c
commit 4bf7d2ca91
2 changed files with 2 additions and 2 deletions

View File

@ -705,7 +705,7 @@ fn parse_item_list<T>(
if is_let {
err.span_suggestion(
non_item_span,
"considering use `const` instead of `let` for associated const",
"consider using `const` instead of `let` for associated const",
"const",
Applicability::MachineApplicable,
);

View File

@ -2,7 +2,7 @@ error: non-item in item list
--> $DIR/suggest-assoc-const.rs:4:5
|
LL | let _X: i32;
| ^^^ help: considering use `const` instead of `let` for associated const: `const`
| ^^^ help: consider using `const` instead of `let` for associated const: `const`
error: aborting due to previous error