1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/dont_promote_unstable_const_fn_cross_crate.rs:8:28
4 LL | let _: &'static u32 = &foo();
5 | ^^^^^ temporary value does not live long enough
6 LL | let _x: &'static u32 = &foo();
8 | - temporary value only lives until here
10 = note: borrowed value must be valid for the static lifetime...
12 error[E0597]: borrowed value does not live long enough
13 --> $DIR/dont_promote_unstable_const_fn_cross_crate.rs:9:29
15 LL | let _x: &'static u32 = &foo();
16 | ^^^^^ temporary value does not live long enough
18 | - temporary value only lives until here
20 = note: borrowed value must be valid for the static lifetime...
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0597`.