about summary refs log tree commit diff
path: root/tests/ui/dyn-star/async-block-dyn-star.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/dyn-star/async-block-dyn-star.rs')
-rw-r--r--tests/ui/dyn-star/async-block-dyn-star.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/dyn-star/async-block-dyn-star.rs b/tests/ui/dyn-star/async-block-dyn-star.rs
new file mode 100644
index 00000000000..9bffd6c6725
--- /dev/null
+++ b/tests/ui/dyn-star/async-block-dyn-star.rs
@@ -0,0 +1,9 @@
+//@ edition:2018
+
+#![feature(dyn_star, const_async_blocks)]
+//~^ WARN the feature `dyn_star` is incomplete
+
+static S: dyn* Send + Sync = async { 42 };
+//~^ needs to have the same ABI as a pointer
+
+pub fn main() {}