tweak suggestion
This commit is contained in:
parent
98e20c097c
commit
4bf7d2ca91
@ -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,
|
||||
);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user