diff options
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 652be48..3a14811 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -77,6 +77,16 @@ trait Foo<X> { } #[dynamize::dynamize] +trait FooWithWhere<X> +where + X: std::fmt::Display, +{ + type A: Into<String>; + + fn foobar(&self, x: X) -> Self::A; +} + +#[dynamize::dynamize] trait Bar<X> { fn foobar<A>(&self, x: X) -> A; } |