]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/user-annotations/adt-nullary-enums.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / user-annotations / adt-nullary-enums.stderr
index bb703412228800d6be0d47cf2bac4026f47728d0..3326fa521fc9cea4efc8e4d26b039fb90f1c7663 100644 (file)
@@ -1,14 +1,14 @@
 error[E0597]: `c` does not live long enough
   --> $DIR/adt-nullary-enums.rs:33:41
    |
-LL |         SomeEnum::SomeVariant(Cell::new(&c)),
-   |                               ----------^^-
-   |                               |         |
-   |                               |         borrowed value does not live long enough
-   |                               argument requires that `c` is borrowed for `'static`
-...
-LL | }
-   | - `c` dropped here while still borrowed
+LL | /     combine(
+LL | |         SomeEnum::SomeVariant(Cell::new(&c)),
+   | |                                         ^^ borrowed value does not live long enough
+LL | |         SomeEnum::SomeOtherVariant::<Cell<&'static u32>>,
+LL | |     );
+   | |_____- argument requires that `c` is borrowed for `'static`
+LL |   }
+   |   - `c` dropped here while still borrowed
 
 error[E0597]: `c` does not live long enough
   --> $DIR/adt-nullary-enums.rs:41:41