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
--> src/main.rs:45:10
|
45 | #[derive(Derivative)]
| ^^^^^^^^^^ expected `&String`, found struct `String`
|
= note: this error originates in the derive macro `Derivative` (in Nightly builds, run with -Z macro-backtrace for more info)
Expected behavior
Here's what current version of macro expands to:
Describe the bug
Current
#[derivative(Clone)]
does not work on struct with specific lifetimeTo Reproduce
will give:
Expected behavior
Here's what current version of macro expands to:
what we need:
Thanks!
The text was updated successfully, but these errors were encountered: