]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/issue-43197.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / issue-43197.rs
index 7d1d33288a907ff5741928c20c11bf8d14e7be77..e15f8771dd73b1ff63cae00a4f2b32384288411a 100644 (file)
@@ -9,11 +9,15 @@ const fn foo(x: u32) -> u32 {
 fn main() {
     const X: u32 = 0 - 1;
     //~^ WARN any use of this value will cause
+    //~| WARN this was previously accepted by the compiler but is being phased out
     const Y: u32 = foo(0 - 1);
     //~^ WARN any use of this value will cause
+    //~| WARN this was previously accepted by the compiler but is being phased out
     println!("{} {}", X, Y);
     //~^ ERROR evaluation of constant value failed
     //~| ERROR evaluation of constant value failed
     //~| WARN erroneous constant used [const_err]
     //~| WARN erroneous constant used [const_err]
+    //~| WARN this was previously accepted by the compiler but is being phased out
+    //~| WARN this was previously accepted by the compiler but is being phased out
 }