summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-strict-provenance-fuzzy-casts.rs
blob: d2d72a68f139676a3d9f20a988348a3b4c1ac7e9 (plain)
1
2
3
4
5
6
7
#![feature(strict_provenance)]
#![deny(fuzzy_provenance_casts)]

fn main() {
    let dangling = 16_usize as *const u8;
    //~^ ERROR strict provenance disallows casting integer `usize` to pointer `*const u8`
}