E1086: value cannot be indexed
Only an Array and a Buffer can be indexed with [...].
Only an Array and a Buffer can be indexed with [...]. A number, a
struct or any other value has no slots to select. The message names the type
of the value. The error points at the indexed expression.
Example
actus
actus
Fix
Index an array or a buffer. Use a field name for a struct.
actus
actus
Run actus explain E1086 in your terminal to read this entry offline. Browse Ownership & types or all error codes.