1 #![feature(tool_lints)]
4 #[warn(clippy::cast_precision_loss, clippy::cast_possible_truncation, clippy::cast_sign_loss, clippy::cast_possible_wrap, clippy::cast_lossless)]
5 #[allow(clippy::no_effect, clippy::unnecessary_operation)]
7 // Test clippy::cast_precision_loss
14 // Test clippy::cast_possible_truncation
22 // Test clippy::cast_possible_wrap
28 // Test clippy::cast_lossless with casts from floating-point types
30 // Test clippy::cast_lossless with an expression wrapped in parens
32 // Test clippy::cast_sign_loss
35 // Extra checks for *size
36 // Test cast_unnecessary