From 4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b Mon Sep 17 00:00:00 2001 From: Janusz Marcinkiewicz Date: Thu, 30 May 2019 22:41:09 +0200 Subject: Explicitly suggest 'type_ascription' feature --- src/libsyntax/parse/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') 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: `: `") + err.note("#![feature(type_ascription)] lets you annotate an \ + expression with a type: `: `") .span_note( lhs_span, "this expression expects an ascribed type after the colon", -- cgit 1.4.1-3-g733a5