tweak suggestion
This commit is contained in:
parent
98e20c097c
commit
4bf7d2ca91
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue