常量

const 關鍵字宣告瞭一個全域性常量繫結。

const DEADBEEF: u64 = 0xDEADBEEF;

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

這輸出

DEADBEEF