]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/issue-56164.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / consts / issue-56164.rs
index 9c673d20b2a9565549532cd4ac1df0d0cab8cfba..094ca377e031bcec74d3c08e86a2c363b13f0ca1 100644 (file)
@@ -1,7 +1,7 @@
-#![feature(const_fn_fn_ptr_basics)]
-
 const fn foo() { (||{})() }
 //~^ ERROR cannot call non-const closure
+//~| ERROR erroneous constant used [const_err]
+//~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
 
 const fn bad(input: fn()) {
     input()