Q:

What is the default integer type in Rust?

When doing something like:
let mut sum = 5 + 10;

What is the exact type of sum? Is it an arbitrary-size type which can’t be overflowed?

A:

There is RFC 212, which states:

Integer literals whose type is unconstrained will default to i32

