asomers / mockall

A powerful mock object library for Rust
Apache License 2.0
1.5k stars 62 forks source link

Document generic parameters' lifetime requirements more precisely. #540

Closed asomers closed 9 months ago

asomers commented 10 months ago

Mockall actually can mock generic structs and traits with non-'static generic parameters. The only thing it can't do is:

I'm not sure at what point Mockall gained this ability. Probably one of the several internal refactorings.