rust/tests/run-pass/cast_fn_ptr_unsafe.rs
2016-06-17 16:49:06 +02:00

9 lines
99 B
Rust

fn main() {
fn f() {}
let g = f as fn() as unsafe fn();
unsafe {
g();
}
}