Closed
Description
As discussed on IRC. cc @steveklabnik
If you do slice[2i32]
you get an error that tells you what is wrong (Index<i32>
is not implemented for [T]
) but not how to fix it (slices are indexed by usize). A quick fix would be to use #[rustc_on_unimplemented]
; it would look like this.
If you are indexing something that isn't [T]
then the message would be a false positive.