2 ms·
You'll get a compile error when rustc can statically prove that it'll overflow (as in your example above). That is generally not possible. The correct answer i
by howinteresting 4y ago
You'll get a compile error when rustc can statically prove that it'll overflow (as in your example above). That is generally not possible.
The correct answer is what shepmaster said in a sibling comment.