diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 527246fe1cdc..c624a0b2a2f1 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1880,15 +1880,15 @@ impl Path { /// assert_eq!(path.strip_prefix(prefix), Ok(Path::new("haha/foo.txt"))); /// ``` #[stable(since = "1.7.0", feature = "path_strip_prefix")] - pub fn strip_prefix<'a, P>(&'a self, base: P) - -> Result<&'a Path, StripPrefixError> + pub fn strip_prefix
(&self, base: P)
+ -> Result<&Path, StripPrefixError>
where P: AsRef