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?
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.
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?