fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
364 B11 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
10error: aborting due to previous error
11