This isn't a good way to learn this. If you don't know how rust memory management works you don't know if the llm is just hallucinating the answer.
If a model ever DOES nail this I'll figure that out when I feel like I have a solid mental model, try to put that knowledge into action and it works.