Explicitly suggest 'type_ascription' feature

This commit is contained in:
Janusz Marcinkiewicz 2019-05-30 22:41:09 +02:00
parent aee7012fab
commit 4c5eb8ecfc
6 changed files with 7 additions and 7 deletions

View file

@ -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",