summaryrefslogtreecommitdiffstats
path: root/tests/ui/dyn-star/dyn-star-to-dyn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/dyn-star/dyn-star-to-dyn.rs')
-rw-r--r--tests/ui/dyn-star/dyn-star-to-dyn.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/dyn-star/dyn-star-to-dyn.rs b/tests/ui/dyn-star/dyn-star-to-dyn.rs
new file mode 100644
index 000000000..a6d9df952
--- /dev/null
+++ b/tests/ui/dyn-star/dyn-star-to-dyn.rs
@@ -0,0 +1,9 @@
+// build-pass
+
+#![feature(dyn_star)]
+//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
+
+fn main() {
+ let x: dyn* Send = &();
+ let x = Box::new(x) as Box<dyn Send>;
+}