//! Regression test for https://github.com/rust-lang/rust/issues/10291 fn test<'x>(x: &'x isize) { drop:: FnMut(&'z isize) -> &'z isize>>(Box::new(|z| { x //~^ ERROR lifetime may not live long enough })); } fn main() {}