fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: lifetime may not live long enough 2 --> $DIR/issue-10291.rs:3:9 3 | 4LL | fn test<'x>(x: &'x isize) { 5 | -- lifetime `'x` defined here 6LL | drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| { 7LL | x 8 | ^ returning this value requires that `'x` must outlive `'static` 9 | 10 = help: consider replacing `'x` with `'static` 11 12error: aborting due to previous error 13