1 error[E0597]: `c` does not live long enough
2 --> $DIR/adt-nullary-enums.rs:33:41
5 LL | | SomeEnum::SomeVariant(Cell::new(&c)),
6 | | ^^ borrowed value does not live long enough
7 LL | | SomeEnum::SomeOtherVariant::<Cell<&'static u32>>,
9 | |_____- argument requires that `c` is borrowed for `'static`
11 | - `c` dropped here while still borrowed
13 error[E0597]: `c` does not live long enough
14 --> $DIR/adt-nullary-enums.rs:41:41
16 LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
17 | -- lifetime `'a` defined here
19 LL | SomeEnum::SomeVariant(Cell::new(&c)),
22 | | borrowed value does not live long enough
23 | argument requires that `c` is borrowed for `'a`
26 | - `c` dropped here while still borrowed
28 error[E0597]: `c` does not live long enough
29 --> $DIR/adt-nullary-enums.rs:54:45
31 LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
32 | -- lifetime `'a` defined here
34 LL | SomeEnum::SomeVariant(Cell::new(&c)),
37 | | borrowed value does not live long enough
38 | argument requires that `c` is borrowed for `'a`
41 | - `c` dropped here while still borrowed
43 error: aborting due to 3 previous errors
45 For more information about this error, try `rustc --explain E0597`.