about summary refs log tree commit diff
path: root/src/test/compile-fail/struct-literal-in-while.rs
AgeCommit message (Collapse)AuthorLines
2015-02-06Move compile-fail tests that are rejected by the parser to parse-failFlorian Hahn-28/+0
2015-01-08Update compile fail tests to use isize.Huon Wilson-1/+1
2014-12-04Make the parser’s ‘expected <foo>, found <bar>’ errors more accurateP1start-1/+1
As an example of what this changes, the following code: let x: [int ..4]; Currently spits out ‘expected `]`, found `..`’. However, a comma would also be valid there, as would a number of other tokens. This change adjusts the parser to produce more accurate errors, so that that example now produces ‘expected one of `(`, `+`, `,`, `::`, or `]`, found `..`’.
2014-06-23libsyntax: Disallow struct literals after `if`, `while`, `match`, andPatrick Walton-0/+28
`for...in`. Closes #14803. If you used a structure literal after one of these keywords, surround it in parentheses. [breaking-change]