blob: b17de624acb0e878872ae1da200a359ee209e66b (
plain)
1
2
3
4
5
6
7
8
9
|
#![deny(trivial_casts, trivial_numeric_casts)]
fn main() {
let lugubrious = 12i32 as i32;
//~^ ERROR trivial numeric cast
let haunted: &u32 = &99;
let _ = haunted as *const u32;
//~^ ERROR trivial cast
}
|