File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ impl str {
780780 ///
781781 /// # Examples
782782 /// ```
783- /// # #![feature(collections )]
783+ /// # #![feature(str_split_at )]
784784 /// let s = "Löwe 老虎 Léopard";
785785 /// let first_space = s.find(' ').unwrap_or(s.len());
786786 /// let (a, b) = s.split_at(first_space);
Original file line number Diff line number Diff line change 4444#![ feature( str_char) ]
4545#![ feature( str_escape) ]
4646#![ feature( str_match_indices) ]
47+ #![ feature( str_split_at) ]
4748#![ feature( str_utf16) ]
4849#![ feature( box_str) ]
4950#![ feature( subslice_offset) ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ fn bot<T>() -> T { loop {} }
1313fn mutate ( s : & mut str ) {
1414 s[ 1 ..2 ] = bot ( ) ;
1515 //~^ ERROR `core::marker::Sized` is not implemented for the type `str`
16- //~^^ ERROR `core::marker::Sized` is not implemented for the type `str`
16+ //~| ERROR `core::marker::Sized` is not implemented for the type `str`
1717 s[ 1usize ] = bot ( ) ;
1818 //~^ ERROR `core::ops::Index<usize>` is not implemented for the type `str`
19- //~^^ ERROR `core::ops::Index<usize>` is not implemented for the type `str`
19+ //~| ERROR `core::ops::IndexMut<usize>` is not implemented for the type `str`
20+ //~| ERROR `core::ops::Index<usize>` is not implemented for the type `str`
2021}
2122
2223pub fn main ( ) { }
You can’t perform that action at this time.
0 commit comments