1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2 --> $DIR/issue-10291.rs:3:9
7 note: ...the reference is valid for the anonymous lifetime #1 defined here...
8 --> $DIR/issue-10291.rs:2:69
10 LL | drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
11 | _____________________________________________________________________^
15 note: ...but the borrowed content is only valid for the lifetime `'x` as defined here
16 --> $DIR/issue-10291.rs:1:9
18 LL | fn test<'x>(x: &'x isize) {
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0312`.