1 error: float has excessive precision
2 --> $DIR/excessive_precision.rs:20:26
4 LL | const BAD32_1: f32 = 0.123_456_789_f32;
5 | ^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.123_456_79_f32`
7 = note: `-D clippy::excessive-precision` implied by `-D warnings`
8 = help: to override `-D warnings` add `#[allow(clippy::excessive_precision)]`
10 error: float has excessive precision
11 --> $DIR/excessive_precision.rs:21:26
13 LL | const BAD32_2: f32 = 0.123_456_789;
14 | ^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.123_456_79`
16 error: float has excessive precision
17 --> $DIR/excessive_precision.rs:22:26
19 LL | const BAD32_3: f32 = 0.100_000_000_000_1;
20 | ^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.1`
22 error: float has excessive precision
23 --> $DIR/excessive_precision.rs:23:29
25 LL | const BAD32_EDGE: f32 = 1.000_000_9;
26 | ^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.000_001`
28 error: float has excessive precision
29 --> $DIR/excessive_precision.rs:27:26
31 LL | const BAD64_3: f64 = 0.100_000_000_000_000_000_1;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.1`
34 error: float has excessive precision
35 --> $DIR/excessive_precision.rs:30:22
37 LL | println!("{:?}", 8.888_888_888_888_888_888_888);
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `8.888_888_888_888_89`
40 error: float has excessive precision
41 --> $DIR/excessive_precision.rs:41:22
43 LL | let bad32: f32 = 1.123_456_789;
44 | ^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8`
46 error: float has excessive precision
47 --> $DIR/excessive_precision.rs:42:26
49 LL | let bad32_suf: f32 = 1.123_456_789_f32;
50 | ^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8_f32`
52 error: float has excessive precision
53 --> $DIR/excessive_precision.rs:43:21
55 LL | let bad32_inf = 1.123_456_789_f32;
56 | ^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8_f32`
58 error: float has excessive precision
59 --> $DIR/excessive_precision.rs:53:36
61 LL | let bad_vec32: Vec<f32> = vec![0.123_456_789];
62 | ^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.123_456_79`
64 error: float has excessive precision
65 --> $DIR/excessive_precision.rs:54:36
67 LL | let bad_vec64: Vec<f64> = vec![0.123_456_789_123_456_789];
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.123_456_789_123_456_78`
70 error: float has excessive precision
71 --> $DIR/excessive_precision.rs:58:24
73 LL | let bad_e32: f32 = 1.123_456_788_888e-10;
74 | ^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8e-10`
76 error: float has excessive precision
77 --> $DIR/excessive_precision.rs:61:27
79 LL | let bad_bige32: f32 = 1.123_456_788_888E-10;
80 | ^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.123_456_8E-10`
82 error: float has excessive precision
83 --> $DIR/excessive_precision.rs:70:13
85 LL | let _ = 2.225_073_858_507_201_1e-308_f64;
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `2.225_073_858_507_201e-308_f64`
88 error: float has excessive precision
89 --> $DIR/excessive_precision.rs:73:13
91 LL | let _ = 1.000_000_000_000_001e-324_f64;
92 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0_f64`
94 error: aborting due to 15 previous errors