Chat GPT is not good at generating working rust code. I think it was probably trained on Stack Overflow, and has seen lots of "looks right, but doesn't work" content. But in the future it'll be possible to train it on only working code and i have no doubt it'll be productive.