Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
issue-56164.rs
blob: 22c257d0b08af5724f4175352646e86aba9ae926 [
file
] [
log
] [
blame
] [
edit
]
const
fn
foo
()
{
(||{})()
}
//~^ ERROR cannot call non-const closure
const
fn
bad
(
input
:
fn
())
{
input
()
//~^ ERROR function pointer calls are not allowed
}
fn
main
()
{
}