File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ pub fn main() {
13
13
let s: String = "abcdef" . to_string ( ) ;
14
14
v[ 3_usize ] ;
15
15
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
20
20
s. as_bytes ( ) [ 3_usize ] ;
21
21
s. as_bytes ( ) [ 3 ] ;
22
22
s. as_bytes ( ) [ 3u8 ] ; //~ERROR : std::slice::SliceIndex<[u8]>` is not satisfied
You can’t perform that action at this time.
0 commit comments