Playground
The real compiler, running in this tab. Change the target under a program and watch the same source move between linking and being refused. Nothing you type is sent anywhere: sharing puts the program in the address after the hash, which a browser never transmits.
// Anything here compiles in this tab. Nothing is sent anywhere.
fn health(current: u8, healed: u8) -> u8 {
return current +| healed
}
fn total(a: u8, b: u8) -> u8 {
return a + b
}