]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.stderr
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / ui / nll / user-annotations / pattern_substs_on_brace_enum_variant.stderr
index b483f219c9007d0adf1045de9a44e1d0575e9e4d..a97e7a9fd46fc3a3b1647c5ac17e29f78ba51609 100644 (file)
@@ -1,5 +1,5 @@
 error[E0597]: `y` does not live long enough
-  --> $DIR/pattern_substs_on_brace_enum_variant.rs:9:33
+  --> $DIR/pattern_substs_on_brace_enum_variant.rs:7:33
    |
 LL |     let foo = Foo::Bar { field: &y };
    |                                 ^^ borrowed value does not live long enough
@@ -10,7 +10,7 @@ LL | }
    | - `y` dropped here while still borrowed
 
 error[E0597]: `y` does not live long enough
-  --> $DIR/pattern_substs_on_brace_enum_variant.rs:16:33
+  --> $DIR/pattern_substs_on_brace_enum_variant.rs:14:33
    |
 LL |     let foo = Foo::Bar { field: &y };
    |                                 ^^ borrowed value does not live long enough