summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs')
-rw-r--r--tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs b/tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs
new file mode 100644
index 000000000..9b6dd7db4
--- /dev/null
+++ b/tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs
@@ -0,0 +1,3 @@
+fn main() {
+ expr as fun()(:); //~ ERROR expected expression
+}