mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
9 lines
202 B
Rust
9 lines
202 B
Rust
#![feature(box_syntax)]
|
|
|
|
fn main() {
|
|
let x = box 42;
|
|
unsafe {
|
|
let _f = std::mem::transmute::<Box<i32>, fn()>(x); //~ ERROR encountered a pointer, but expected a function pointer
|
|
}
|
|
}
|