summaryrefslogtreecommitdiffstats
path: root/tests/ui/dyn-star/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/dyn-star/error.rs')
-rw-r--r--tests/ui/dyn-star/error.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/dyn-star/error.rs b/tests/ui/dyn-star/error.rs
new file mode 100644
index 000000000..d8261387e
--- /dev/null
+++ b/tests/ui/dyn-star/error.rs
@@ -0,0 +1,13 @@
+#![feature(dyn_star)]
+#![allow(incomplete_features)]
+
+use std::fmt::Debug;
+
+trait Foo {}
+
+fn make_dyn_star() {
+ let i = 42;
+ let dyn_i: dyn* Foo = i; //~ ERROR trait bound `{integer}: Foo` is not satisfied
+}
+
+fn main() {}