mozilla/rust — Issue #1586: Keywords should not be allowed as variable identifiers
Author: mbrubeck
Created: 2012-01-21 00:21:33+00:00
State: open

The compiler will happily compile code like the following:

let if = 1;
let mod = 2;
let of = 3;

It would be good to fail with a syntax error here, since attempting to use these variables will likely cause syntax problems elsewhere.