]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/unwind-abort.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / unwind-abort.rs
index 2dc8e14bed545aec882c3a83bbabf7423cea1519..10820986fa7d3f603e89e286c71c555507aa2e14 100644 (file)
@@ -3,6 +3,7 @@
 #[unwind(aborts)]
 const fn foo() {
     panic!() //~ ERROR any use of this value will cause an error [const_err]
+    //~| WARN this was previously accepted by the compiler but is being phased out
 }
 
 const _: () = foo();