rust/tests/ui/consts/const-eval/extern_fat_pointer.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
181 B
Rust
Raw Normal View History

//@ check-pass
#![feature(extern_types)]
2020-09-01 21:12:52 +00:00
extern "C" {
type Opaque;
}
const FOO: *const u8 = &42 as *const _ as *const Opaque as *const u8;
fn main() {
let _foo = FOO;
}