]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/promoted_const_fn_fail.stderr
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / promoted_const_fn_fail.stderr
index 519ba7d84b087a51c5a7f22f28b8c742c1f10eb0..6618f1cd1c0b534f006b4e581bbedbb3770c33de 100644 (file)
@@ -1,5 +1,5 @@
 error[E0716]: temporary value dropped while borrowed
-  --> $DIR/promoted_const_fn_fail.rs:20:27
+  --> $DIR/promoted_const_fn_fail.rs:21:27
    |
 LL |     let x: &'static u8 = &(bar() + 1);
    |            -----------    ^^^^^^^^^^^ creates a temporary which is freed while still in use