The use of C was only an example, and I can bet that AI can also goof Rust code that goes through the compiler if that is your argument.
Unless you now tell me that you drive your AI generation code with full coverage unit tests manually written by you.
Certainly not. I'm using AI to write Rust, the compiler is way better at telling the AI it goofed completely, and the resulting code (once the AI managed to get rid of errors/warnings) has a much better chance of actually working well.