Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
tests
/
ui
/
consts
/
const-fn-ptr.rs
blob: b1befdf06af2ea1c45e865bb38654b710f532b83 [
file
] [
log
] [
blame
]
const
fn
make_fn_ptr
()
->
fn
()
{
||
{}
}
static
STAT
:
()
=
make_fn_ptr
()();
//~^ ERROR function pointer
const
CONST
:
()
=
make_fn_ptr
()();
//~^ ERROR function pointer
const
fn
call_ptr
()
{
make_fn_ptr
()();
//~^ ERROR function pointer
}
fn
main
()
{}