]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10291.nll.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-10291.nll.stderr
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
6 LL |     drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
7 LL |         x
8    |         ^ returning this value requires that `'x` must outlive `'static`
9
10 error: aborting due to previous error
11