SQ in silver chrome letters, a lab's gear stacked against the S: a rack, two oscilloscopes, pizza boxes and a six-pack. Strange Query Lab

CARDIAC › rust-cardiac › Message codes › RCE0023

RCE0023error

A resource name that isn't a literal name.

error[RCE0023]: load_resource() takes the resource's name as a string literal: load_resource("key")
error[RCE0023]: resource {name}: a resource's name is letters, digits and _, the name of a file in resources/

load_resource given a name that isn't a string literal, or a literal that isn't a plain file name.

A resource is the file resources/NAME beside the program, which the loader puts in memory with the program. The compiler names the cells in the deck by the resource's name, so the name must be known when it compiles: a string literal of letters, digits and _.

let table: [i16; 10] = load_resource("squares");

In a terminal: cargo cardiac help RCE0023.