summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-03-12 21:01:10 +0100
committerHampusM <hampus@hampusmat.com>2023-03-12 21:01:10 +0100
commitf46a9d7c241b0603a855fca9e67358b2349fd8f0 (patch)
treeb5946361e97e3479fb38c66a4e285a12a936bdb9 /examples
parent9e99dbb543ab92762b8c92f1d0ada9c99d7167c9 (diff)
fix: remove need for where clause workaround
Diffstat (limited to 'examples')
-rw-r--r--examples/simple.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/simple.rs b/examples/simple.rs
index a0a5860..a5b7203 100644
--- a/examples/simple.rs
+++ b/examples/simple.rs
@@ -15,7 +15,7 @@ trait Foo
fn baz<Foobar>(&self, name: &str, foobar: Foobar)
where
- Foobar: SomeFoobar;
+ Foobar: SomeFoobar + Debug;
}
mock! {
@@ -27,9 +27,8 @@ mock! {
fn biz<Fiz: (Debug +), Bar>(self: (&Self), fiz: Fiz) -> &Bar;
fn baz<Foobar>(self: (&Self), name: &str, foobar: Foobar)
- where (
- Foobar: SomeFoobar
- );
+ where
+ Foobar: SomeFoobar + Debug;
}
}