]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/conditional_array_execution.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / conditional_array_execution.rs
index 2058d2e218473b925ca224333fcc1effa6beee25..9b99a685b63704929a6d01d469eb026e5e5acda4 100644 (file)
@@ -6,9 +6,11 @@
 const Y: u32 = 6;
 const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
 //~^ WARN any use of this value will cause an error
+//~| WARN this was previously accepted by the compiler but is being phased out
 
 fn main() {
     println!("{}", FOO);
     //~^ ERROR
     //~| WARN erroneous constant used [const_err]
+    //~| WARN this was previously accepted by the compiler but is being phased out
 }