about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/impl-header.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/impl-header.stderr
parent0eb2adb7e877ceaa7d4919f7b881508ee507ec3b (diff)
downloadrust-cd2fd34ca68f701ade233a980093ee4444f7da3a.tar.gz
rust-cd2fd34ca68f701ade233a980093ee4444f7da3a.zip
Add tests
Diffstat (limited to 'tests/ui/async-await/async-fn/impl-header.stderr')
-rw-r--r--tests/ui/async-await/async-fn/impl-header.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/async-await/async-fn/impl-header.stderr b/tests/ui/async-await/async-fn/impl-header.stderr
new file mode 100644
index 00000000000..02cb4326242
--- /dev/null
+++ b/tests/ui/async-await/async-fn/impl-header.stderr
@@ -0,0 +1,8 @@
+error: expected type, found keyword `async`
+  --> $DIR/impl-header.rs:5:6
+   |
+LL | impl async Fn<()> for F {}
+   |      ^^^^^ expected type
+
+error: aborting due to 1 previous error
+