summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-ascription-with-fn-call.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/type/type-ascription-with-fn-call.fixed')
-rw-r--r--src/test/ui/type/type-ascription-with-fn-call.fixed9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/type/type-ascription-with-fn-call.fixed b/src/test/ui/type/type-ascription-with-fn-call.fixed
new file mode 100644
index 000000000..6d96c4303
--- /dev/null
+++ b/src/test/ui/type/type-ascription-with-fn-call.fixed
@@ -0,0 +1,9 @@
+// run-rustfix
+#![feature(type_ascription)]
+
+fn main() {
+ f() ;
+ f(); //~ ERROR expected type, found function
+}
+
+fn f() {}