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:31:5
111 error: casting u32 to i32 may wrap around the value
112 --> $DIR/cast.rs:32:5
117 error: casting u64 to i64 may wrap around the value
118 --> $DIR/cast.rs:33:5
123 error: casting usize to isize may wrap around the value
124 --> $DIR/cast.rs:34:5
126 LL | 1usize as isize;
129 error: casting f32 to f64 may become silently lossy if types change
130 --> $DIR/cast.rs:36:5
133 | ^^^^^^^^^^^^^ help: try: `f64::from(1.0f32)`
135 = note: `-D clippy::cast-lossless` implied by `-D warnings`
137 error: casting u8 to u16 may become silently lossy if types change
138 --> $DIR/cast.rs:38:5
140 LL | (1u8 + 1u8) as u16;
141 | ^^^^^^^^^^^^^^^^^^ help: try: `u16::from(1u8 + 1u8)`
143 error: casting i32 to u32 may lose the sign of the value
144 --> $DIR/cast.rs:41:5
149 error: casting isize to usize may lose the sign of the value
150 --> $DIR/cast.rs:43:5
152 LL | -1isize as usize;
155 error: casting to the same type is unnecessary (`i32` -> `i32`)
156 --> $DIR/cast.rs:52:5
161 = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
163 error: casting to the same type is unnecessary (`f32` -> `f32`)
164 --> $DIR/cast.rs:53:5
169 error: casting to the same type is unnecessary (`bool` -> `bool`)
170 --> $DIR/cast.rs:54:5
175 error: casting integer literal to f32 is unnecessary
176 --> $DIR/cast.rs:57:5
179 | ^^^^^^^^^^ help: try: `100_f32`
181 error: casting integer literal to f64 is unnecessary
182 --> $DIR/cast.rs:58:5
185 | ^^^^^^^^^^ help: try: `100_f64`
187 error: casting integer literal to f64 is unnecessary
188 --> $DIR/cast.rs:59:5
191 | ^^^^^^^^^^^^^^ help: try: `100_f64`
193 error: aborting due to 30 previous errors