]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-11681.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-11681.stderr
index ef3d24c6657beff73dcd2556c0705d8f0f95c334..210c6dc5a00b6f48abc7f5836b1cad63c3ee1a04 100644 (file)
@@ -1,5 +1,5 @@
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/issue-11681.rs:22:20
+  --> $DIR/issue-11681.rs:12:20
    |
 LL |   let testValue = &Test; //~ ERROR borrowed value does not live long enough
    |                    ^^^^ temporary value does not live long enough
@@ -7,8 +7,8 @@ LL |   return testValue;
 LL | }
    | - temporary value only lives until here
    |
-note: borrowed value must be valid for the lifetime 'a as defined on the function body at 21:15...
-  --> $DIR/issue-11681.rs:21:15
+note: borrowed value must be valid for the lifetime 'a as defined on the function body at 11:15...
+  --> $DIR/issue-11681.rs:11:15
    |
 LL | fn createTest<'a>() -> &'a Test {
    |               ^^