Too-big literals can be smuggled into println!
#118554
Labels
A-fmt
Area: `std::fmt`
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
Denial of an overflowing literal, like the following case would:
Instead, this happened:
It worked??? It even printed out the right decimal number, 5373003641998677469065
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: