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 }}
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
But of course this doesn't work, because the lifetime 'a hasn't been declared. But I can't figure out where/how to declare it. In a normal Rust struct, I could say struct Baz<'a> { bar: Bar<'a> }, of course, but the anonymous-struct Helix syntax doesn't give me a place to put the lifetime declaration. I've tried a handful of different things but they all result in the macro-expansion failing.
Am I missing something? Is this just a missing feature at the moment?
The text was updated successfully, but these errors were encountered:
You are correct, this is a missing feature at the moment. There are some pending parser changes that need to be merged first, but I'll work on this next.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I need to do something along these lines:
But of course this doesn't work, because the lifetime
'a
hasn't been declared. But I can't figure out where/how to declare it. In a normal Rust struct, I could saystruct Baz<'a> { bar: Bar<'a> }
, of course, but the anonymous-struct Helix syntax doesn't give me a place to put the lifetime declaration. I've tried a handful of different things but they all result in the macro-expansion failing.Am I missing something? Is this just a missing feature at the moment?
The text was updated successfully, but these errors were encountered: