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
{{ message }}
Repository navigation
Derive macro doesn't keep the struct's generics #268
structCpuUsageLabelsSet<'a>{mode:CpuMode,// <- an enumservice:&'astr,}
which emits compilation error
error[E0726]: implicit elided lifetime not allowed here
--> xxxxx
|
48 | struct CpuUsageLabelSet<'a> { // <-- `'a` lifetime is used in the struct,
| ^^^^^^^^^^^^^^^^ expected lifetime parameter
|
help: indicate the anonymous lifetime
|
48 | struct CpuUsageLabelSet<'_><'a> { // <-- `'a` lifetime is used in the struct,
| ++++
Activity
[-]struct's generics aren't kept[/-][+]Derive macro doesn't keep the struct's generics[/+]