File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ pub fn main() {
1313 let s: String = "abcdef" . to_string ( ) ;
1414 v[ 3_usize ] ;
1515 v[ 3 ] ;
16- v[ 3u8 ] ; //~ERROR : std::ops::Index<u8 >` is not satisfied
17- v[ 3i8 ] ; //~ERROR : std::ops::Index<i8 >` is not satisfied
18- v[ 3u32 ] ; //~ERROR : std::ops::Index<u32 >` is not satisfied
19- v[ 3i32 ] ; //~ERROR : std::ops::Index<i32 >` is not satisfied
16+ v[ 3u8 ] ; //~ERROR : std::slice::SliceIndex<[isize] >` is not satisfied
17+ v[ 3i8 ] ; //~ERROR : std::slice::SliceIndex<[isize] >` is not satisfied
18+ v[ 3u32 ] ; //~ERROR : std::slice::SliceIndex<[isize] >` is not satisfied
19+ v[ 3i32 ] ; //~ERROR : std::slice::SliceIndex<[isize] >` is not satisfied
2020 s. as_bytes ( ) [ 3_usize ] ;
2121 s. as_bytes ( ) [ 3 ] ;
2222 s. as_bytes ( ) [ 3u8 ] ; //~ERROR : std::slice::SliceIndex<[u8]>` is not satisfied
You can’t perform that action at this time.
0 commit comments