fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
419 B13 linesraw
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