CARDIAC › rust-cardiac › Message codes › RCE0005
RCE0005error
A cast CARDIAC can't make.
error[RCE0005]: unsupported cast: {src}
A cast (as) between types the compiler doesn't convert between.
Casts between the card's types compile: u8 as i16, i16 as usize, bool as i16 and the like, with Rust's meaning (a u8 wraps). A cast to or from a type no cell holds, or a pointer cast, doesn't.
Cast between i16, u8, usize and bool, or copy the value to a local first.
let b: u8 = t[i];
let v = b as i16;
In a terminal: cargo cardiac help RCE0005.