]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/issue-50814-2.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / issue-50814-2.rs
index 8f5c8f097a2ca9011cd3dbcd23e90b88f7931b60..15f4de0ae1b671c5c6b3c8b667a6472949eba204 100644 (file)
@@ -12,6 +12,7 @@ trait Foo<T> {
 
 impl<T: C> Foo<T> for A<T> {
     const BAR: usize = [5, 6, 7][T::BOO]; //~ ERROR any use of this value will cause an error
+    //~| WARN this was previously accepted by the compiler but is being phased out
 }
 
 fn foo<T: C>() -> &'static usize {