blob: 7aa9bd7e2dcdddeec9a76cdd29f9f14bd8bcf7fe [file] [log] [blame]
// run-pass
#![feature(rustc_attrs, staged_api)]
#![stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_allow_const_fn_ptr]
#[rustc_const_stable(since="1.0.0", feature = "mep")]
const fn takes_fn_ptr(_: fn()) {}
const FN: fn() = || ();
const fn gives_fn_ptr() {
takes_fn_ptr(FN)
}
fn main() {
gives_fn_ptr();
}