Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
typeck-fn-to-unsafe-fn-ptr.rs
blob: 1e954f5690956bffc54a033888027c13e16c2704 [
file
] [
log
] [
blame
]
// 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
);
}
}