Core Beginner
00 Variables
Rust bindings are immutable unless you say otherwise, and constants carry an explicit type.
Define a constant MAX_HP equal to 100. Constants need an explicit type.
Hints
- Constants:
const NAME: TYPE = value;-- the type is required.
Reveal solution
const MAX_HP: i32 = 100;