CARDIAC › rust-cardiac › Message codes › RCE0026
RCE0026error
A resource not bound to an array.
error[RCE0026]: load_resource("{name}") must be bound with let: `let t: [i16; N] = load_resource("{name}");`
error[RCE0026]: load_resource("{name}") must be bound to an array with let: `let t: [i16; N] = load_resource("{name}");`
The result of load_resource not bound with let to an array.
The resource's cells are an array of the program's, which the loader fills. The array's length, which says how many cells, comes from the type of the let it is bound to.
let t: [i16; 10] = load_resource("squares");
In a terminal: cargo cardiac help RCE0026.