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 › RCE0027

RCE0027error

overlay() outside main.

error[RCE0027]: overlay() is only allowed in main

overlay() called in a function other than main.

A program too big for memory comes in phases, each read in over the one before; overlay() is where one phase ends and the next is loaded. A phase is a stretch of main: the functions it calls are in it, and can't end it.

Call overlay() in main, between the parts of the program.

fn main() {
    read_table();
    overlay();
    print_report();
}

In a terminal: cargo cardiac help RCE0027.