CARDIAC › rust-cardiac › Message codes › RCE0006
RCE0006error
A constant of a type no cell holds.
error[RCE0006]: unsupported const {name}: {ty}
A const whose type has no cell: a float, or an integer type wider than a card.
A named const becomes the number it is, wherever it is used. A constant of f32, f64, or a wide integer the compiler can't narrow to a card, has no number on a card to become.
Give the constant a card's type, and its value in units a card can hold.
// refused
const SCALE: f64 = 2.5;
// compiles: tenths
const SCALE: i16 = 25;
In a terminal: cargo cardiac help RCE0006.