summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-21721.rs
blob: 4c1411e1ecff033c32b9b6f6d43e64948d690cc9 (plain)
1
2
3
4
5
6
7
8
9
// run-pass

fn main() {
    static NONE: Option<((), &'static u8)> = None;
    let ptr = unsafe {
        *(&NONE as *const _ as *const *const u8)
    };
    assert!(ptr.is_null());
}