Error code E0608
An attempt to use index on a type which doesn't implement the std::ops::Index
trait was performed.
Erroneous code example:
ⓘ
To be able to index into a type it needs to implement the std::ops::Index
trait. Example:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
An attempt to use index on a type which doesn't implement the std::ops::Index
trait was performed.
Erroneous code example:
ⓘ
To be able to index into a type it needs to implement the std::ops::Index
trait. Example: