]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-10291.nll.stderr
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccjit-codegen
[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