-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lifetimes seem broken #428
Labels
Comments
The lifetime is not declared for impl<'b> ::rustler::Encoder for Bla<'a> {
fn encode<'a>(&self, env: ::rustler::Env<'a>) -> ::rustler::Term<'a> {
use RUSTLER_ATOMS_Bla::*;
let mut map = ::rustler::types::map::map_new(env);
map = map
.map_put(atom_my_str().encode(env), self.my_str.encode(env))
.unwrap();
map
}
} (created with Interestingly, the example works for Decoder, because of the overlapping lifetime names (we use
|
Closed
I think this might be intentional, but I'm not sure yet. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prompted by #425 (comment) I tried to add tests for lifetimes, but I couldn't do it because I got a compile error:
Whole code:
The text was updated successfully, but these errors were encountered: