-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
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.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.