summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorJanusz Marcinkiewicz <virrages@gmail.com>2019-05-30 22:41:09 +0200
committerJanusz Marcinkiewicz <virrages@gmail.com>2019-05-30 22:44:39 +0200
commit4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b (patch)
tree8bd78eb155df147eebe65a92691592002f955e13 /src/test/ui/parser
parentaee7012fab26d5e307a2fe767e4e7c847c5a45ee (diff)
downloadrust-4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b.tar.gz
rust-4c5eb8ecfc1accda036053d50c8c44b3c5eebb3b.zip
Explicitly suggest 'type_ascription' feature
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/recover-from-bad-variant.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/parser/recover-from-bad-variant.stderr b/src/test/ui/parser/recover-from-bad-variant.stderr
index 1eba6d7d528..150d74f0742 100644
--- a/src/test/ui/parser/recover-from-bad-variant.stderr
+++ b/src/test/ui/parser/recover-from-bad-variant.stderr
@@ -4,7 +4,7 @@ error: expected type, found `3`
 LL |     let x = Enum::Foo(a: 3, b: 4);
    |                          ^ expecting a type here because of type ascription
    |
-   = note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
+   = note: #![feature(type_ascription)] lets you annotate an expression with a type: `<expr>: <type>`
 note: this expression expects an ascribed type after the colon
   --> $DIR/recover-from-bad-variant.rs:7:23
    |