diff options
| author | Janusz Marcinkiewicz <virrages@gmail.com> | 2019-05-30 22:41:09 +0200 |
|---|---|---|
| committer | Janusz Marcinkiewicz <virrages@gmail.com> | 2019-05-30 22:44:39 +0200 |
| commit | 4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b (patch) | |
| tree | 8bd78eb155df147eebe65a92691592002f955e13 /src/libsyntax/parse | |
| parent | aee7012fab26d5e307a2fe767e4e7c847c5a45ee (diff) | |
| download | rust-4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b.tar.gz rust-4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b.zip | |
Explicitly suggest 'type_ascription' feature
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs index b3d49524d76..2e4d4c09139 100644 --- a/src/libsyntax/parse/diagnostics.rs +++ b/src/libsyntax/parse/diagnostics.rs @@ -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", |
