Sign in
fuchsia
/
third_party
/
rust
/
a9aa2dfe844840a7e414873ce55ef9d02f1038a7
/
.
/
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
);
}
}