Closed
Description
use std::env;
use std::ffi::OsString;
/* Explicit lifetimes are required by rust-2015-05-11 nightly (newer than playpen at the moment)
* Previously implicit lifetimes worked fine */
fn foo<'a, F>(bar: &'a F) -> Option<OsString>
where F: Fn(&'a str) -> Option<OsString>
{
bar("HOME")
}
fn main() {
println!("{:?}", foo(&env::var_os));
}
Playpen: http://is.gd/LYhXZx
Might be caused by: #25212
I'm unsure if this is an actual issue that can be fixed, but figured I'd open an issue in case it was.