summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/alias/generic-default-in-dyn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/alias/generic-default-in-dyn.rs')
-rw-r--r--tests/ui/traits/alias/generic-default-in-dyn.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/traits/alias/generic-default-in-dyn.rs b/tests/ui/traits/alias/generic-default-in-dyn.rs
new file mode 100644
index 000000000..d44e1c2a9
--- /dev/null
+++ b/tests/ui/traits/alias/generic-default-in-dyn.rs
@@ -0,0 +1,10 @@
+trait SendEqAlias<T> = PartialEq;
+//~^ ERROR trait aliases are experimental
+
+struct Foo<T>(dyn SendEqAlias<T>);
+//~^ ERROR the type parameter `Rhs` must be explicitly specified [E0393]
+
+struct Bar<T>(dyn SendEqAlias<T>, T);
+//~^ ERROR the type parameter `Rhs` must be explicitly specified [E0393]
+
+fn main() {}