1 error: casting `isize` to `i8` may truncate the value
2 --> $DIR/cast_size.rs:12:5
7 = note: `-D clippy::cast-possible-truncation` implied by `-D warnings`
9 error: casting `isize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`isize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
10 --> $DIR/cast_size.rs:15:5
15 = note: `-D clippy::cast-precision-loss` implied by `-D warnings`
17 error: casting `usize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`usize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
18 --> $DIR/cast_size.rs:16:5
23 error: casting `isize` to `f32` causes a loss of precision (`isize` is 32 or 64 bits wide, but `f32`'s mantissa is only 23 bits wide)
24 --> $DIR/cast_size.rs:17:5
29 error: casting `usize` to `f32` causes a loss of precision (`usize` is 32 or 64 bits wide, but `f32`'s mantissa is only 23 bits wide)
30 --> $DIR/cast_size.rs:18:5
35 error: casting `isize` to `i32` may truncate the value on targets with 64-bit wide pointers
36 --> $DIR/cast_size.rs:19:5
41 error: casting `isize` to `u32` may truncate the value on targets with 64-bit wide pointers
42 --> $DIR/cast_size.rs:20:5
47 error: casting `usize` to `u32` may truncate the value on targets with 64-bit wide pointers
48 --> $DIR/cast_size.rs:21:5
53 error: casting `usize` to `i32` may truncate the value on targets with 64-bit wide pointers
54 --> $DIR/cast_size.rs:22:5
59 error: casting `usize` to `i32` may wrap around the value on targets with 32-bit wide pointers
60 --> $DIR/cast_size.rs:22:5
65 = note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
67 error: casting `i64` to `isize` may truncate the value on targets with 32-bit wide pointers
68 --> $DIR/cast_size.rs:24:5
73 error: casting `i64` to `usize` may truncate the value on targets with 32-bit wide pointers
74 --> $DIR/cast_size.rs:25:5
79 error: casting `u64` to `isize` may truncate the value on targets with 32-bit wide pointers
80 --> $DIR/cast_size.rs:26:5
85 error: casting `u64` to `isize` may wrap around the value on targets with 64-bit wide pointers
86 --> $DIR/cast_size.rs:26:5
91 error: casting `u64` to `usize` may truncate the value on targets with 32-bit wide pointers
92 --> $DIR/cast_size.rs:27:5
97 error: casting `u32` to `isize` may wrap around the value on targets with 32-bit wide pointers
98 --> $DIR/cast_size.rs:28:5
103 error: casting `i32` to `f32` causes a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
104 --> $DIR/cast_size.rs:33:5
106 LL | 999_999_999 as f32;
109 error: casting `usize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`usize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
110 --> $DIR/cast_size.rs:34:5
112 LL | 9_999_999_999_999_999usize as f64;
113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 error: aborting due to 18 previous errors