Remove index type check (review comment)

This commit is contained in:
Esteban Küber 2017-11-25 06:20:07 -08:00
parent cde0023b5b
commit 97d8d04f3f
3 changed files with 6 additions and 29 deletions

View file

@ -20,7 +20,7 @@ fn main() { //~ NOTE expected `()` because of default return type
//~| NOTE expected type
let v = s[..2];
//~^ ERROR the trait bound `str: std::marker::Sized` is not satisfied
//~| NOTE consider a slice instead
//~| HELP consider a slice instead
//~| NOTE `str` does not have a constant size known at compile-time
//~| HELP the trait `std::marker::Sized` is not implemented for `str`
//~| NOTE all local variables must have a statically known size