Closed Pet3ris closed 1 year ago
Possibly related to: https://github.com/asomers/mockall/issues/422, https://github.com/asomers/mockall/issues/299
It's a documented limitation that all generic types must be 'static
. See https://github.com/asomers/mockall/blob/master/mockall/tests/mock_generic_and_reference_arguments.rs .
Closing, on the theory that your emoji indicates resolution.
The following code is not compiling due to lifetime issues with
&C
:I've tried a couple of ways to add
'static
in themock!
macro but they didn't work. Any way around this?Tested with
mockall = "0.11.2"
.Detailed error