1 error: casting `i32` to `f32` causes a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
7 = note: `-D clippy::cast-precision-loss` implied by `-D warnings`
9 error: casting `i64` to `f32` causes a loss of precision (`i64` is 64 bits wide, but `f32`'s mantissa is only 23 bits wide)
15 error: casting `i64` to `f64` causes a loss of precision (`i64` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
21 error: casting `u32` to `f32` causes a loss of precision (`u32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
27 error: casting `u64` to `f32` causes a loss of precision (`u64` is 64 bits wide, but `f32`'s mantissa is only 23 bits wide)
33 error: casting `u64` to `f64` causes a loss of precision (`u64` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
39 error: casting `f32` to `i32` may truncate the value
45 = note: `-D clippy::cast-possible-truncation` implied by `-D warnings`
47 error: casting `f32` to `u32` may truncate the value
53 error: casting `f32` to `u32` may lose the sign of the value
59 = note: `-D clippy::cast-sign-loss` implied by `-D warnings`
61 error: casting `f64` to `f32` may truncate the value
67 error: casting `i32` to `i8` may truncate the value
73 error: casting `i32` to `u8` may truncate the value
79 error: casting `f64` to `isize` may truncate the value
85 error: casting `f64` to `usize` may truncate the value
91 error: casting `f64` to `usize` may lose the sign of the value
97 error: casting `u8` to `i8` may wrap around the value
103 = note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
105 error: casting `u16` to `i16` may wrap around the value
106 --> $DIR/cast.rs:30:5
111 error: casting `u32` to `i32` may wrap around the value
112 --> $DIR/cast.rs:31:5
117 error: casting `u64` to `i64` may wrap around the value
118 --> $DIR/cast.rs:32:5
123 error: casting `usize` to `isize` may wrap around the value
124 --> $DIR/cast.rs:33:5
126 LL | 1usize as isize;
129 error: casting `i32` to `u32` may lose the sign of the value
130 --> $DIR/cast.rs:36:5
135 error: casting `isize` to `usize` may lose the sign of the value
136 --> $DIR/cast.rs:38:5
138 LL | -1isize as usize;
141 error: aborting due to 22 previous errors