Explicitly suggest 'type_ascription' feature
This commit is contained in:
parent
aee7012fab
commit
4c5eb8ecfc
6 changed files with 7 additions and 7 deletions
|
|
@ -858,8 +858,8 @@ impl<'a> Parser<'a> {
|
|||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
} else {
|
||||
err.note("type ascription is a nightly-only feature that lets \
|
||||
you annotate an expression with a type: `<expr>: <type>`")
|
||||
err.note("#![feature(type_ascription)] lets you annotate an \
|
||||
expression with a type: `<expr>: <type>`")
|
||||
.span_note(
|
||||
lhs_span,
|
||||
"this expression expects an ascribed type after the colon",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue