File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1786,7 +1786,7 @@ impl<T> [T] {
1786
1786
/// ```
1787
1787
#[ must_use = "returns the subslice without modifying the original" ]
1788
1788
#[ stable( feature = "slice_strip" , since = "1.50.0" ) ]
1789
- pub fn strip_prefix < P : SlicePattern < Item = T > > ( & self , prefix : & P ) -> Option < & [ T ] >
1789
+ pub fn strip_prefix < P : SlicePattern < Item = T > + ? Sized > ( & self , prefix : & P ) -> Option < & [ T ] >
1790
1790
where
1791
1791
T : PartialEq ,
1792
1792
{
@@ -1820,7 +1820,7 @@ impl<T> [T] {
1820
1820
/// ```
1821
1821
#[ must_use = "returns the subslice without modifying the original" ]
1822
1822
#[ stable( feature = "slice_strip" , since = "1.50.0" ) ]
1823
- pub fn strip_suffix < P : SlicePattern < Item = T > > ( & self , suffix : & P ) -> Option < & [ T ] >
1823
+ pub fn strip_suffix < P : SlicePattern < Item = T > + ? Sized > ( & self , suffix : & P ) -> Option < & [ T ] >
1824
1824
where
1825
1825
T : PartialEq ,
1826
1826
{
You can’t perform that action at this time.
0 commit comments