summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/type-ascription-instead-of-variant.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/type-ascription-instead-of-variant.stderr')
-rw-r--r--src/test/ui/suggestions/type-ascription-instead-of-variant.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/type-ascription-instead-of-variant.stderr b/src/test/ui/suggestions/type-ascription-instead-of-variant.stderr
new file mode 100644
index 000000000..f59ba78d4
--- /dev/null
+++ b/src/test/ui/suggestions/type-ascription-instead-of-variant.stderr
@@ -0,0 +1,12 @@
+error: expected type, found `""`
+ --> $DIR/type-ascription-instead-of-variant.rs:3:25
+ |
+LL | let _ = Option:Some("");
+ | - ^^ expected type
+ | |
+ | help: maybe write a path separator here: `::`
+ |
+ = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
+
+error: aborting due to previous error
+