diff options
Diffstat (limited to 'tests/ui/type/type-ascription-with-fn-call.rs')
-rw-r--r-- | tests/ui/type/type-ascription-with-fn-call.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/type/type-ascription-with-fn-call.rs b/tests/ui/type/type-ascription-with-fn-call.rs new file mode 100644 index 000000000..ed4f7c904 --- /dev/null +++ b/tests/ui/type/type-ascription-with-fn-call.rs @@ -0,0 +1,9 @@ +// run-rustfix +#![feature(type_ascription)] + +fn main() { + f() : + f(); //~ ERROR expected type, found function +} + +fn f() {} |