Can I have a struct hold a pointer to an another Self instance?

When I try doing that I get this issue: https://github.com/modularml/mojo/issues/1402 I'd love to do Day8 cleanly with a Tree but I fear I won't be able to if nobody has a work around this
GitHub
[BUG]: Movable trait not detected on recursive struct implemented w...
Bug description When defining a recursive struct (or however you call a struct that has a member of its own Self type) using AnyPointer and implementing the Movable trait on said struct to allow th...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server