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