]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10291.nll.stderr
Merge commit '3e4179766bcecd712824da04356621b8df012ea4' into sync-from-clippy
[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    = help: consider replacing `'x` with `'static`
11
12 error: aborting due to previous error
13