]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error: lifetime may not live long enough |
2 | --> $DIR/issue-10291.rs:3:9 | |
3 | | | |
4 | LL | fn test<'x>(x: &'x isize) { | |
5 | | -- lifetime `'x` defined here | |
dc9dc135 | 6 | LL | drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| { |
48663c56 XL |
7 | LL | x |
8 | | ^ returning this value requires that `'x` must outlive `'static` | |
60c5eb7d XL |
9 | | |
10 | = help: consider replacing `'x` with `'static` | |
48663c56 XL |
11 | |
12 | error: aborting due to previous error | |
13 |