Rust protects you about memory use error, on all the other errors you are on your own. I once wrote
> something_something(a, b, 0)
instead of
> something_something(a, b, 1)
No compiler will detect that. Maybe an AI review, but it was like 10 years ago, before the AI era.