diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 245a6d945b5a3..c8a169a6d8836 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1210,6 +1210,14 @@ impl<'a> From<&'a Path> for Box { } } +#[stable(feature = "path_default", since = "1.17.0")] +impl<'a> Default for &'a Path { + fn default() -> &'a Path { + let default: &'a OsStr = Default::default(); + Path::new(default) + } +} + #[stable(feature = "box_default_extra", since = "1.17.0")] impl Default for Box { fn default() -> Box {