mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
14 lines
180 B
Rust
14 lines
180 B
Rust
// 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;
|
|
}
|