diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-20 19:47:43 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-21 08:27:12 +0100 |
commit | bd6f84036426c43e08078cf11e4ee70b7714ba2f (patch) | |
tree | f10475f6cdb7118172029bfdfa22caaee88c1a89 /tests | |
parent | d5bb9c038a98282c3b6421c24a196a36e7720634 (diff) |
also dynamize simple type param bounds in where clauses
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 4 |
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); |