summary refs log tree commit diff
path: root/src/test/compile-fail/empty-impl-semicolon.rs
AgeCommit message (Collapse)AuthorLines
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-08-24Adjust the error messages to match the pattern "expected foo, found bar"Jonas Hietala-1/+1
Closes #8492
2014-01-31Remove the obsolete handler for `impl A;`.Huon Wilson-0/+11
This is has been obsolete for quite a while now (including a release), so removing the special handling seems fine. (The error message is quite good still anyway.) Fixes #9580.