File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -60,4 +60,7 @@ fn main() {
6060
6161 // issue #2840
6262 let num = 0.000_000_000_01e-10f64;
63+
64+ // issue #7744
65+ let _ = 2.225_073_858_507_201e-_308_f64;
6366}
Original file line number Diff line number Diff line change @@ -60,4 +60,7 @@ fn main() {
6060
6161 // issue #2840
6262 let num = 0.000_000_000_01e-10f64 ;
63+
64+ // issue #7744
65+ let _ = 2.225_073_858_507_201_1e-308_f64 ;
6366}
Original file line number Diff line number Diff line change @@ -78,5 +78,11 @@ error: float has excessive precision
7878LL | let bad_bige32: f32 = 1.123_456_788_888E-10;
7979 | ^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8E-10`
8080
81- error: aborting due to 13 previous errors
81+ error: float has excessive precision
82+ --> $DIR/excessive_precision.rs:65:13
83+ |
84+ LL | let _ = 2.225_073_858_507_201_1e-308_f64;
85+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `2.225_073_858_507_201e-_308_f64`
86+
87+ error: aborting due to 14 previous errors
8288
You can’t perform that action at this time.
0 commit comments