address review comments
This commit is contained in:
parent
b344c7171e
commit
b9a201c6df
2 changed files with 14 additions and 14 deletions
|
|
@ -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`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue