graydon/rust — Issue #1328: Use quotes to improve error messages
Author: Lenny222
Created: 2011-12-18 19:23:15+00:00
State: open

Since Haskell's [1 .. 10] is not (yet) implemented in Rust, and i read about ranges, i tried

let a = [1 to 10];

this gives the baffling error message

error: expecting ,, found to

A more readable version would be

error: expecting "," but found "to"