Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
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
()
{
}