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
17 // Test cast_possible_truncation
29 // Test cast_possible_wrap
36 // Test cast_sign_loss
40 // Extra checks for *size
61 1u32 as usize; // Should not trigger any lint
62 1i32 as isize; // Neither should this