fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
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