diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-25 16:56:44 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-26 11:45:53 +0100 |
commit | 74bcf35fc83c57fd7e9a31639d7dae31d4d9a050 (patch) | |
tree | 0084ecfa9f464505bbb3bfaa7b3899c11587dd2d /tests | |
parent | 8046190e8f537407210fb87acbfe96d4084d58da (diff) |
support dynamized supertraits via attribute
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 15 |
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; +} |