常量

const 关键字声明了一个全局常量绑定。

const DEADBEEF: u64 = 0xDEADBEEF;

fn main() {
    println("{:X}", DEADBEEF);
}

这输出

DEADBEEF