A reference to a local variable returned from a function

You can't create self-referencing structs in Rust.
See this similar question and answer (there are several others that are similar very recently as well):

1 Like