1 error[E0597]: `c` does not live long enough
2 --> $DIR/adt-brace-enums.rs:37:48
4 LL | SomeEnum::SomeVariant::<&'static u32> { t: &c }; //~ ERROR
7 | borrowed value does not live long enough
8 | requires that `c` is borrowed for `'static`
10 | - `c` dropped here while still borrowed
12 error[E0597]: `c` does not live long enough
13 --> $DIR/adt-brace-enums.rs:42:43
15 LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
16 | -- lifetime `'a` defined here
18 LL | SomeEnum::SomeVariant::<&'a u32> { t: &c }; //~ ERROR
21 | borrowed value does not live long enough
22 | requires that `c` is borrowed for `'a`
24 | - `c` dropped here while still borrowed
26 error[E0597]: `c` does not live long enough
27 --> $DIR/adt-brace-enums.rs:52:47
29 LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
30 | -- lifetime `'a` defined here
32 LL | SomeEnum::SomeVariant::<&'a u32> { t: &c }; //~ ERROR
35 | borrowed value does not live long enough
36 | requires that `c` is borrowed for `'a`
38 | - `c` dropped here while still borrowed
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0597`.