1
Fork 0

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 @@ impl<'a> Parser<'a> {
if is_let { if is_let {
err.span_suggestion( err.span_suggestion(
non_item_span, non_item_span,
"considering use `const` instead of `let` for associated const", "consider using `const` instead of `let` for associated const",
"const", "const",
Applicability::MachineApplicable, Applicability::MachineApplicable,
); );

View file

@ -2,7 +2,7 @@ error: non-item in item list
--> $DIR/suggest-assoc-const.rs:4:5 --> $DIR/suggest-assoc-const.rs:4:5
| |
LL | let _X: i32; 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 error: aborting due to previous error