]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / dont_promote_unstable_const_fn_cross_crate.rs
index 6dcfcfe6780c9b2a7ae1e4b2a776a371b2dd19e9..ea35f46807abb94eb89344861b6f38e475921ed2 100644 (file)
@@ -5,6 +5,6 @@
 use stability::foo;
 
 fn main() {
-    let _: &'static u32 = &foo(); //~ ERROR does not live long enough
-    let _x: &'static u32 = &foo(); //~ ERROR does not live long enough
+    let _: &'static u32 = &foo(); //~ ERROR temporary value dropped while borrowed
+    let _x: &'static u32 = &foo(); //~ ERROR temporary value dropped while borrowed
 }