summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/extern_fat_pointer.rs
blob: d91d07827dc05f66e221168415e7a41e41911493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass

#![feature(extern_types)]

extern "C" {
    type Opaque;
}

const FOO: *const u8 = &42 as *const _ as *const Opaque as *const u8;

fn main() {
    let _foo = FOO;
}