about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/method-call-pos.stderr
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-26 17:00:34 +0000
committerMichael Goulet <michael@errs.io>2024-01-31 16:59:19 +0000
commitcd2fd34ca68f701ade233a980093ee4444f7da3a (patch)
tree5a05b9c584df6a0b6eb284f1d4a6807ead9bdc34 /tests/ui/async-await/async-fn/method-call-pos.stderr
parent0eb2adb7e877ceaa7d4919f7b881508ee507ec3b (diff)
downloadrust-cd2fd34ca68f701ade233a980093ee4444f7da3a.tar.gz
rust-cd2fd34ca68f701ade233a980093ee4444f7da3a.zip
Add tests
Diffstat (limited to 'tests/ui/async-await/async-fn/method-call-pos.stderr')
-rw-r--r--tests/ui/async-await/async-fn/method-call-pos.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/async-await/async-fn/method-call-pos.stderr b/tests/ui/async-await/async-fn/method-call-pos.stderr
new file mode 100644
index 00000000000..527515a1b44
--- /dev/null
+++ b/tests/ui/async-await/async-fn/method-call-pos.stderr
@@ -0,0 +1,14 @@
+error: expected identifier, found keyword `async`
+  --> $DIR/method-call-pos.rs:4:11
+   |
+LL |     <_ as async Fn()>(|| async {});
+   |           ^^^^^ expected identifier, found keyword
+
+error: expected one of `(`, `::`, `<`, or `>`, found `Fn`
+  --> $DIR/method-call-pos.rs:4:17
+   |
+LL |     <_ as async Fn()>(|| async {});
+   |                 ^^ expected one of `(`, `::`, `<`, or `>`
+
+error: aborting due to 2 previous errors
+