]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/min_const_fn/allow_const_fn_ptr.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / allow_const_fn_ptr.rs
index 3992607c387e11acb8a958d47aa6924b3146e6cc..937aae1a8e3997831f791b65416a577120b4a0a1 100644 (file)
@@ -1,10 +1,12 @@
 #![feature(rustc_attrs, staged_api)]
 
 #[stable(feature = "rust1", since = "1.0.0")]
+#[rustc_const_stable(since="1.0.0", feature = "mep")]
 const fn error(_: fn()) {} //~ ERROR function pointers in const fn are unstable
 
 #[stable(feature = "rust1", since = "1.0.0")]
 #[rustc_allow_const_fn_ptr]
+#[rustc_const_stable(since="1.0.0", feature = "mep")]
 const fn compiles(_: fn()) {}
 
 fn main() {}