2015-01-08 04:54:35 -06:00
|
|
|
fn test<'x>(x: &'x isize) {
|
2019-05-28 13:46:13 -05:00
|
|
|
drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
|
2022-05-22 00:02:55 -05:00
|
|
|
x
|
2022-04-01 12:13:25 -05:00
|
|
|
//~^ ERROR lifetime may not live long enough
|
2015-02-15 02:52:21 -06:00
|
|
|
}));
|
2014-05-20 22:28:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|