Error code E0608
Attempted to index a value whose type doesn't implement the
std::ops::Index trait.
Erroneous code example:
ⓘ
Only values with types that implement the std::ops::Index trait
can be indexed with square brackets. Example:
Tuples and structs are indexed with dot (.), not with brackets ([]),
and tuple element names are their positions:
// this (pseudo code) expression is true for any tuple:
tuple == (tuple.0, tuple.1, ...)