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 lose the sign of the value
79 error: casting i32 to u8 may truncate the value
85 error: casting f64 to isize may truncate the value
91 error: casting f64 to usize may truncate the value
97 error: casting f64 to usize may lose the sign of the value
103 error: casting u8 to i8 may wrap around the value
104 --> $DIR/cast.rs:35:5
109 = note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
111 error: casting u16 to i16 may wrap around the value
112 --> $DIR/cast.rs:36:5
117 error: casting u32 to i32 may wrap around the value
118 --> $DIR/cast.rs:37:5
123 error: casting u64 to i64 may wrap around the value
124 --> $DIR/cast.rs:38:5
129 error: casting usize to isize may wrap around the value
130 --> $DIR/cast.rs:39:5
132 LL | 1usize as isize;
135 error: casting f32 to f64 may become silently lossy if types change
136 --> $DIR/cast.rs:41:5
139 | ^^^^^^^^^^^^^ help: try: `f64::from(1.0f32)`
141 = note: `-D clippy::cast-lossless` implied by `-D warnings`
143 error: casting u8 to u16 may become silently lossy if types change
144 --> $DIR/cast.rs:43:5
146 LL | (1u8 + 1u8) as u16;
147 | ^^^^^^^^^^^^^^^^^^ help: try: `u16::from(1u8 + 1u8)`
149 error: casting i32 to u32 may lose the sign of the value
150 --> $DIR/cast.rs:45:5
155 error: casting isize to usize may lose the sign of the value
156 --> $DIR/cast.rs:46:5
158 LL | 1isize as usize;
161 error: casting to the same type is unnecessary (`i32` -> `i32`)
162 --> $DIR/cast.rs:49:5
167 = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
169 error: casting to the same type is unnecessary (`f32` -> `f32`)
170 --> $DIR/cast.rs:50:5
175 error: casting to the same type is unnecessary (`bool` -> `bool`)
176 --> $DIR/cast.rs:51:5
181 error: aborting due to 28 previous errors