address review comments

This commit is contained in:
Ariel Ben-Yehuda 2016-05-18 23:28:31 +03:00
parent b344c7171e
commit b9a201c6df
2 changed files with 14 additions and 14 deletions

View file

@ -18,7 +18,7 @@ use std::ops::Index;
fn main() {
let x = &[1, 2, 3] as &[i32];
x[1i32]; //~ ERROR E0277
//~| NOTE slice indices are of type usize
//~| NOTE slice indices are of type `usize`
x[..1i32]; //~ ERROR E0277
//~| NOTE slice indices are of type usize
//~| NOTE slice indices are of type `usize`
}