CARDIAC › rust-cardiac › Message codes › RCE0030
RCE0030error
overlay() in a loop.
error[RCE0030]: phase {phase} ends at an overlay() that an earlier phase ended at: overlay() in a loop
An overlay() that the program can reach more than once.
Each overlay() ends one phase and loads the next, which is read in over the code before it. Reached a second time, it would load the same phase again, with the code that came after it gone.
Put overlay() where main runs once, outside any loop.
fn main() {
let n = inp();
overlay();
for i in 0..n {
out(i);
}
}
In a terminal: cargo cardiac help RCE0030.