Collecting into a PathBuf from Iterator<Item=Component> is hard. #41866
Labels
C-feature-accepted
Category: A feature request that has been accepted pending implementation.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
See discussion here: #41531.
To summarize, the following should work, but currently doesn't. It's likely that implementing
impl<P: AsRef<OsStr>> FromIterator<P> for PathBuf
would solve this, but I haven't tested.The text was updated successfully, but these errors were encountered: