diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/type/type-ascription-with-fn-call.fixed | 9 |
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() {} |