blob: 3d414aa6f1a3713ae84decdcd3415c886525d929 [file] [log] [blame] [edit]
//@ run-pass
// This tests reification from safe function to `unsafe fn` pointer
fn do_nothing() -> () {}
unsafe fn call_unsafe(func: unsafe fn() -> ()) -> () {
func()
}
pub fn main() {
unsafe { call_unsafe(do_nothing); }
}