aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-20 19:47:43 +0100
committerMartin Fischer <martin@push-f.com>2021-11-21 08:27:12 +0100
commitbd6f84036426c43e08078cf11e4ee70b7714ba2f (patch)
treef10475f6cdb7118172029bfdfa22caaee88c1a89 /tests/tests.rs
parentd5bb9c038a98282c3b6421c24a196a36e7720634 (diff)
also dynamize simple type param bounds in where clauses
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 448af64..3139185 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -146,6 +146,10 @@ trait TraitWithCallback {
type A: Into<String>;
fn fun_with_callback<F: Fn(Self::A)>(&self, a: F);
+ fn fun_with_callback0<G>(&self, a: G)
+ where
+ G: Fn(Self::A);
+
fn fun_with_callback1<X: Fn(Option<Self::A>)>(&self, a: X);
fn fun_with_callback2<Y: Fn(i32, Option<Self::A>, String) -> bool>(&self, a: Y);