This repository was archived by the owner on May 28, 2025. It is now read-only.
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() {
60
60
61
61
// issue #2840
62
62
let num = 0.000_000_000_01e-10f64;
63
+
64
+ // issue #7744
65
+ let _ = 2.225_073_858_507_201e-_308_f64;
63
66
}
Original file line number Diff line number Diff line change @@ -60,4 +60,7 @@ fn main() {
60
60
61
61
// issue #2840
62
62
let num = 0.000_000_000_01e-10f64 ;
63
+
64
+ // issue #7744
65
+ let _ = 2.225_073_858_507_201_1e-308_f64 ;
63
66
}
Original file line number Diff line number Diff line change @@ -78,5 +78,11 @@ error: float has excessive precision
78
78
LL | let bad_bige32: f32 = 1.123_456_788_888E-10;
79
79
| ^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8E-10`
80
80
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
82
88
You can’t perform that action at this time.
0 commit comments