You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 0.20.0 Mockers can mock generic traits. However, mocking traits with 'static lifetime parameters doesn't work. Example:
#[mocked]pubtraitA<T:'static>{fnfoo(&self,t:T);}
error[E0310]: the parameter type `T` may not live long enough
--> src/t_mockers.rs:205:9
|
205 | #[mocked]
| ^^^^^^^^^
206 | pub trait A<T: 'static> {
| -- help: consider adding an explicit lifetime bound `T: 'static`...
|
note: ...so that the type `T` will meet its required lifetime bounds
--> src/t_mockers.rs:205:9
|
205 | #[mocked]
| ^^^^^^^^^
error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
With 0.20.0 Mockers can mock generic traits. However, mocking traits with
'static
lifetime parameters doesn't work. Example:The text was updated successfully, but these errors were encountered: