aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-20 09:54:46 +0100
committerMartin Fischer <martin@push-f.com>2021-11-20 10:19:03 +0100
commit80225095fe224285215b83406950d53835e4dcf9 (patch)
treea411628be8d25e402b91dae77bc92403c3604c6f /tests
parent2eca6efb508f7603b8408534471248f956de5f7d (diff)
support where clauses for trait generics
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs10
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;
}