4 #[deny(cast_precision_loss, cast_possible_truncation, cast_sign_loss, cast_possible_wrap)]
5 #[allow(no_effect, unnecessary_operation)]
7 // Test cast_precision_loss
14 1i32 as f64; // Should not trigger the lint
15 1u32 as f64; // Should not trigger the lint
16 // Test cast_possible_truncation
24 // Test cast_possible_wrap
30 // Test cast_sign_loss
33 // Extra checks for *size
50 1u32 as usize; // Should not trigger any lint
51 1i32 as isize; // Neither should this
53 // Test cast_unnecessary