summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/generic_method.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/generic_method.rs b/examples/generic_method.rs
index 995c67d..4262ee2 100644
--- a/examples/generic_method.rs
+++ b/examples/generic_method.rs
@@ -5,6 +5,8 @@ use ridicule::mock;
trait Foo
{
fn bar<Baz: Display>(&self, num: u128) -> Baz;
+
+ fn abc<Baz: Display>(&mut self, baz: Baz);
}
mock! {
@@ -13,6 +15,8 @@ mock! {
impl Foo for MockFoo
{
fn bar<Baz: Display>(&self, num: u128) -> Baz;
+
+ fn abc<Baz: Display>(&mut self, baz_baz: Baz);
}
}