// Regression test for issue #146045 - ensure that the TAIT `SplitPaths` does not // require the borrowed string to be live. //@ check-pass //@ edition:2015 pub fn repro() -> Option { let unparsed = std::ffi::OsString::new(); std::env::split_paths(&unparsed).next() } fn main() {}