Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
consts
/
issue-56164.rs
blob: 90ea217698d6572f8040208d9f238c2e2d90d0d0 [
file
] [
log
] [
blame
]
#![
feature
(
const_fn_fn_ptr_basics
)]
const
fn
foo
()
{
(||{})()
}
//~^ ERROR calls in constant functions
const
fn
bad
(
input
:
fn
())
{
input
()
//~^ ERROR function pointer
}
fn
main
()
{
}