]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/format.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / format.rs
index 3eef0d6c3d4d0ffa5dd6337395ffab4df501183d..0d8b7c12d8abb798e2771f110146a36894f7532e 100644 (file)
@@ -1,8 +1,6 @@
 const fn failure() {
     panic!("{:?}", 0);
     //~^ ERROR cannot call non-const formatting macro in constant functions
-    //~| ERROR erroneous constant used
-    //~| ERROR erroneous constant used
 }
 
 const fn print() {
@@ -10,8 +8,6 @@ const fn print() {
     //~^ ERROR cannot call non-const formatting macro in constant functions
     //~| ERROR `Arguments::<'a>::new_v1` is not yet stable as a const fn
     //~| ERROR cannot call non-const fn `_print` in constant functions
-    //~| ERROR erroneous constant used
-    //~| ERROR erroneous constant used
 }
 
 fn main() {}