summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-ascription-with-fn-call.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/type/type-ascription-with-fn-call.stderr')
-rw-r--r--src/test/ui/type/type-ascription-with-fn-call.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/type/type-ascription-with-fn-call.stderr b/src/test/ui/type/type-ascription-with-fn-call.stderr
new file mode 100644
index 000000000..d78fd08fd
--- /dev/null
+++ b/src/test/ui/type/type-ascription-with-fn-call.stderr
@@ -0,0 +1,11 @@
+error[E0573]: expected type, found function `f`
+ --> $DIR/type-ascription-with-fn-call.rs:6:5
+ |
+LL | f() :
+ | - help: maybe you meant to write `;` here
+LL | f();
+ | ^^^ expecting a type here because of type ascription
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0573`.