fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0597]: `local_arr` does not live long enough 2 --> $DIR/propagate-multiple-requirements.rs:15:14 3 | 4LL | let mut out: &mut &'static [i32] = &mut (&[1] as _); 5 | ------------------- type annotation requires that `local_arr` is borrowed for `'static` 6LL | once(|mut z: &[i32], mut out_val: &mut &[i32]| { 7 | ----------------------------------------- value captured here 8... 9LL | z = &local_arr; 10 | ^^^^^^^^^ borrowed value does not live long enough 11... 12LL | } 13 | - `local_arr` dropped here while still borrowed 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0597`.