about summary refs log tree commit diff
path: root/tests/ui/async-await/async-drop/async-without-sync.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/async-drop/async-without-sync.stderr')
-rw-r--r--tests/ui/async-await/async-drop/async-without-sync.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/async-await/async-drop/async-without-sync.stderr b/tests/ui/async-await/async-drop/async-without-sync.stderr
new file mode 100644
index 00000000000..0eaca322dc0
--- /dev/null
+++ b/tests/ui/async-await/async-drop/async-without-sync.stderr
@@ -0,0 +1,10 @@
+error: `AsyncDrop` impl without `Drop` impl
+  --> $DIR/async-without-sync.rs:15:1
+   |
+LL | impl AsyncDrop for St {
+   | ^^^^^^^^^^^^^^^^^^^^^
+   |
+   = help: type implementing `AsyncDrop` trait must also implement `Drop` trait to be used in sync context and unwinds
+
+error: aborting due to 1 previous error
+