aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-25 16:56:44 +0100
committerMartin Fischer <martin@push-f.com>2021-11-26 11:45:53 +0100
commit74bcf35fc83c57fd7e9a31639d7dae31d4d9a050 (patch)
tree0084ecfa9f464505bbb3bfaa7b3899c11587dd2d /tests/tests.rs
parent8046190e8f537407210fb87acbfe96d4084d58da (diff)
support dynamized supertraits via attribute
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index e3df519..b75c605 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -282,3 +282,18 @@ trait CustomCollection {
fn test(&self) -> MyCollection<Self::A, Self::A, Self::A>;
}
+
+#[dynamize::dynamize]
+trait SomeTrait {
+ type Y: Into<String>;
+
+ fn foo(&self) -> Self::Y;
+}
+
+#[dynamize::dynamize]
+#[dynamized(SomeTrait)]
+trait OneTrait: SomeTrait {
+ type X: Into<String>;
+
+ fn test(&self) -> Self::X;
+}