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
NifTuple doesn't work with polymorphic structs #424
the parameter type `T` may not live long enough
...so that the type `Foo<T>` will meet its required lifetime bounds...rustc[E0309](https://doc.rust-lang.org/error-index.html#E0309)
mod.rs(43, 32): ...that is required by this bound
test_codegen.rs(200, 13): consider adding an explicit lifetime bound...: `: '__rustler_decode_lifetime`
Activity
turion commentedon Jan 18, 2022
CC @evnu
evnu commentedon Jan 18, 2022
@turion codegen does not support generic structs (yet?). For example,
NifStructalso doesn't work for a polymorphic struct:Support for generic types. Fixes rusterlium#424
Support for generic types. Fixes rusterlium#424
Support for generic types. Fixes rusterlium#424
evnu commentedon Aug 3, 2022
#483 might push this a little bit forward as it uses
split_for_impl()fromsynto generate theimpls.Support for generic types. Fixes rusterlium#424
Support for generic types. Fixes rusterlium#424
evnu commentedon Sep 15, 2022
Does #483 fix this?
turion commentedon Sep 15, 2022
Not out of the box. I tried the following:
Error message: