Updated

Best AI model for Rust code

As of Sep 30, 2026, Claude Sonnet 5 had the lowest relative bug rate in Rust code (0.61, 39% fewer counted bugs than the Rust average), statistically tied with 5 other models, among 7 ranked models.

Models ranked by relative bug rate in Rust code. Lower values are better.
RankModelRate
1= (statistically tied)Claude Sonnet 5
0.61
2= (statistically tied)GPT-6 Astra
0.61
3= (statistically tied)GPT-5.6 Sol
0.66
4= (statistically tied)Claude Opus 5.5
0.74
5= (statistically tied)Claude Opus 4.8
1.01
6= (statistically tied)Claude Fable 5.1
1.28
7= (statistically tied)Claude Opus 5
1.73

1.00 = Rust average · lower is better · = statistically tied

Other languages

Questions and answers

Which AI model writes the most bugs in Rust?
As of Sep 30, 2026, Claude Opus 5 had the highest relative bug rate in Rust code (1.73, 73% more counted bugs than the Rust average), statistically tied with Claude Fable 5.1.