1 error[E0597]: `c` does not live long enough
2 --> $DIR/adt-tuple-struct-calls.rs:27:7
5 | - binding `c` declared here
6 LL | let f = SomeStruct::<&'static u32>;
10 | | borrowed value does not live long enough
11 | argument requires that `c` is borrowed for `'static`
13 | - `c` dropped here while still borrowed
15 error[E0597]: `c` does not live long enough
16 --> $DIR/adt-tuple-struct-calls.rs:33:7
18 LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
19 | -- lifetime `'a` defined here
21 | - binding `c` declared here
22 LL | let f = SomeStruct::<&'a u32>;
26 | | borrowed value does not live long enough
27 | argument requires that `c` is borrowed for `'a`
29 | - `c` dropped here while still borrowed
31 error[E0597]: `c` does not live long enough
32 --> $DIR/adt-tuple-struct-calls.rs:45:11
34 LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
35 | -- lifetime `'a` defined here
40 | | borrowed value does not live long enough
41 | argument requires that `c` is borrowed for `'a`
43 | - `c` dropped here while still borrowed
45 error[E0597]: `c` does not live long enough
46 --> $DIR/adt-tuple-struct-calls.rs:53:11
48 LL | let f = SomeStruct::<&'a u32>;
49 | - lifetime `'1` appears in the type of `f`
54 | | borrowed value does not live long enough
55 | argument requires that `c` is borrowed for `'1`
57 | - `c` dropped here while still borrowed
59 error: aborting due to 4 previous errors
61 For more information about this error, try `rustc --explain E0597`.