We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e20c0 commit 4bf7d2cCopy full SHA for 4bf7d2c
compiler/rustc_parse/src/parser/item.rs
@@ -705,7 +705,7 @@ impl<'a> Parser<'a> {
705
if is_let {
706
err.span_suggestion(
707
non_item_span,
708
- "considering use `const` instead of `let` for associated const",
+ "consider using `const` instead of `let` for associated const",
709
"const",
710
Applicability::MachineApplicable,
711
);
src/test/ui/parser/suggest-assoc-const.stderr
@@ -2,7 +2,7 @@ error: non-item in item list
2
--> $DIR/suggest-assoc-const.rs:4:5
3
|
4
LL | let _X: i32;
5
- | ^^^ help: considering use `const` instead of `let` for associated const: `const`
+ | ^^^ help: consider using `const` instead of `let` for associated const: `const`
6
7
error: aborting due to previous error
8
0 commit comments