11error: float has excessive precision
2-   --> tests/ui/excessive_precision.rs:20 :26
2+   --> tests/ui/excessive_precision.rs:27 :26
33   |
44LL |     const BAD32_1: f32 = 0.123_456_789_f32;
55   |                          ^^^^^^^^^^^^^^^^^
@@ -13,7 +13,7 @@ LL +     const BAD32_1: f32 = 0.123_456_79_f32;
1313   |
1414
1515error: float has excessive precision
16-   --> tests/ui/excessive_precision.rs:22 :26
16+   --> tests/ui/excessive_precision.rs:29 :26
1717   |
1818LL |     const BAD32_2: f32 = 0.123_456_789;
1919   |                          ^^^^^^^^^^^^^
@@ -25,7 +25,7 @@ LL +     const BAD32_2: f32 = 0.123_456_79;
2525   |
2626
2727error: float has excessive precision
28-   --> tests/ui/excessive_precision.rs:24 :26
28+   --> tests/ui/excessive_precision.rs:31 :26
2929   |
3030LL |     const BAD32_3: f32 = 0.100_000_000_000_1;
3131   |                          ^^^^^^^^^^^^^^^^^^^
@@ -37,7 +37,7 @@ LL +     const BAD32_3: f32 = 0.1;
3737   |
3838
3939error: float has excessive precision
40-   --> tests/ui/excessive_precision.rs:26 :29
40+   --> tests/ui/excessive_precision.rs:33 :29
4141   |
4242LL |     const BAD32_EDGE: f32 = 1.000_000_9;
4343   |                             ^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL +     const BAD32_EDGE: f32 = 1.000_001;
4949   |
5050
5151error: float has excessive precision
52-   --> tests/ui/excessive_precision.rs:31 :26
52+   --> tests/ui/excessive_precision.rs:38 :26
5353   |
5454LL |     const BAD64_3: f64 = 0.100_000_000_000_000_000_1;
5555   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL +     const BAD64_3: f64 = 0.1;
6161   |
6262
6363error: float has excessive precision
64-   --> tests/ui/excessive_precision.rs:35 :22
64+   --> tests/ui/excessive_precision.rs:42 :22
6565   |
6666LL |     println!("{:?}", 8.888_888_888_888_888_888_888);
6767   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -73,7 +73,7 @@ LL +     println!("{:?}", 8.888_888_888_888_89);
7373   |
7474
7575error: float has excessive precision
76-   --> tests/ui/excessive_precision.rs:47 :22
76+   --> tests/ui/excessive_precision.rs:54 :22
7777   |
7878LL |     let bad32: f32 = 1.123_456_789;
7979   |                      ^^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL +     let bad32: f32 = 1.123_456_8;
8585   |
8686
8787error: float has excessive precision
88-   --> tests/ui/excessive_precision.rs:49 :26
88+   --> tests/ui/excessive_precision.rs:56 :26
8989   |
9090LL |     let bad32_suf: f32 = 1.123_456_789_f32;
9191   |                          ^^^^^^^^^^^^^^^^^
@@ -97,7 +97,7 @@ LL +     let bad32_suf: f32 = 1.123_456_8_f32;
9797   |
9898
9999error: float has excessive precision
100-   --> tests/ui/excessive_precision.rs:51 :21
100+   --> tests/ui/excessive_precision.rs:58 :21
101101   |
102102LL |     let bad32_inf = 1.123_456_789_f32;
103103   |                     ^^^^^^^^^^^^^^^^^
@@ -109,7 +109,7 @@ LL +     let bad32_inf = 1.123_456_8_f32;
109109   |
110110
111111error: float has excessive precision
112-   --> tests/ui/excessive_precision.rs:62 :36
112+   --> tests/ui/excessive_precision.rs:69 :36
113113   |
114114LL |     let bad_vec32: Vec<f32> = vec![0.123_456_789];
115115   |                                    ^^^^^^^^^^^^^
@@ -121,7 +121,7 @@ LL +     let bad_vec32: Vec<f32> = vec![0.123_456_79];
121121   |
122122
123123error: float has excessive precision
124-   --> tests/ui/excessive_precision.rs:64 :36
124+   --> tests/ui/excessive_precision.rs:71 :36
125125   |
126126LL |     let bad_vec64: Vec<f64> = vec![0.123_456_789_123_456_789];
127127   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -133,7 +133,7 @@ LL +     let bad_vec64: Vec<f64> = vec![0.123_456_789_123_456_78];
133133   |
134134
135135error: float has excessive precision
136-   --> tests/ui/excessive_precision.rs:69 :24
136+   --> tests/ui/excessive_precision.rs:76 :24
137137   |
138138LL |     let bad_e32: f32 = 1.123_456_788_888e-10;
139139   |                        ^^^^^^^^^^^^^^^^^^^^^
@@ -145,7 +145,7 @@ LL +     let bad_e32: f32 = 1.123_456_8e-10;
145145   |
146146
147147error: float has excessive precision
148-   --> tests/ui/excessive_precision.rs:73 :27
148+   --> tests/ui/excessive_precision.rs:80 :27
149149   |
150150LL |     let bad_bige32: f32 = 1.123_456_788_888E-10;
151151   |                           ^^^^^^^^^^^^^^^^^^^^^
@@ -157,7 +157,7 @@ LL +     let bad_bige32: f32 = 1.123_456_8E-10;
157157   |
158158
159159error: float has excessive precision
160-   --> tests/ui/excessive_precision.rs:86 :13
160+   --> tests/ui/excessive_precision.rs:93 :13
161161   |
162162LL |     let _ = 2.225_073_858_507_201_1e-308_f64;
163163   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -169,7 +169,7 @@ LL +     let _ = 2.225_073_858_507_201e-308_f64;
169169   |
170170
171171error: float has excessive precision
172-   --> tests/ui/excessive_precision.rs:90 :13
172+   --> tests/ui/excessive_precision.rs:97 :13
173173   |
174174LL |     let _ = 1.000_000_000_000_001e-324_f64;
175175   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -181,7 +181,7 @@ LL +     let _ = 0_f64;
181181   |
182182
183183error: float has excessive precision
184-   --> tests/ui/excessive_precision.rs:101 :20
184+   --> tests/ui/excessive_precision.rs:108 :20
185185   |
186186LL |     const _: f64 = 3.0000000000000000e+00;
187187   |                    ^^^^^^^^^^^^^^^^^^^^^^
@@ -193,13 +193,13 @@ LL +     const _: f64 = 3.0;
193193   |
194194
195195error: float has excessive precision
196-   --> tests/ui/excessive_precision.rs:106 :18
196+   --> tests/ui/excessive_precision.rs:113 :18
197197   |
198198LL |     let _: f32 = 1.01234567890123456789012345678901234567890;
199199   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
200200   |
201201note: consider making it a `const` item
202-   --> tests/ui/excessive_precision.rs:106 :5
202+   --> tests/ui/excessive_precision.rs:113 :5
203203   |
204204LL |     let _: f32 = 1.01234567890123456789012345678901234567890;
205205   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -210,13 +210,13 @@ LL +     let _: f32 = 1.012_345_7;
210210   |
211211
212212error: float has excessive precision
213-   --> tests/ui/excessive_precision.rs:108 :18
213+   --> tests/ui/excessive_precision.rs:115 :18
214214   |
215215LL |     let _: f64 = 1.01234567890123456789012345678901234567890;
216216   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
217217   |
218218note: consider making it a `const` item
219-   --> tests/ui/excessive_precision.rs:108 :5
219+   --> tests/ui/excessive_precision.rs:115 :5
220220   |
221221LL |     let _: f64 = 1.01234567890123456789012345678901234567890;
222222   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -226,5 +226,22 @@ LL -     let _: f64 = 1.01234567890123456789012345678901234567890;
226226LL +     let _: f64 = 1.012_345_678_901_234_6;
227227   |
228228
229- error: aborting due to 18 previous errors
229+ error: float has excessive precision
230+   --> tests/ui/excessive_precision.rs:127:17
231+    |
232+ LL |     let gamma = 0.5772156649015328606065120900824024310421;
233+    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
234+    |
235+ note: consider making it a `const` item
236+   --> tests/ui/excessive_precision.rs:127:5
237+    |
238+ LL |     let gamma = 0.5772156649015328606065120900824024310421;
239+    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
240+ help: consider changing the type or truncating it to
241+    |
242+ LL -     let gamma = 0.5772156649015328606065120900824024310421;
243+ LL +     let gamma = 0.577_215_664_901_532_9;
244+    |
245+ 
246+ error: aborting due to 19 previous errors
230247
0 commit comments