1 error[E0597]: `a` does not live long enough
2 --> $DIR/regions-addr-of-arg.rs:15:31
4 LL | let _p: &'static isize = &a; //~ ERROR `a` does not live long enough
5 | ^ borrowed value does not live long enough
7 | - borrowed value only lives until here
9 = note: borrowed value must be valid for the static lifetime...
11 error[E0597]: `a` does not live long enough
12 --> $DIR/regions-addr-of-arg.rs:23:6
14 LL | &a //~ ERROR `a` does not live long enough
15 | ^ borrowed value does not live long enough
17 | - borrowed value only lives until here
19 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 22:8...
20 --> $DIR/regions-addr-of-arg.rs:22:8
22 LL | fn zed<'a>(a: isize) -> &'a isize {
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0597`.