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

RCE0034error

println! and print!.

error[RCE0034]: println! and print! aren't supported on CARDIAC, which prints only numbers: use out() ({why})

println! or print! in a program for CARDIAC.

CARDIAC's output is a teletype that prints numbers, one a line. There is no text to print, and the formatting machinery behind println! is far bigger than memory.

Output numbers with out().

// refused
println!("{}", total);
// compiles
out(total);

In a terminal: cargo cardiac help RCE0034.