Skip to content

Commit 7f4e9c9

Browse files
committed
Update compile fail test error messages
1 parent 26ddd46 commit 7f4e9c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/compile-fail/integral-indexing.rs

+4-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)