about summary refs log tree commit diff
path: root/src/test/parse-fail/issue-33413.rs
AgeCommit message (Collapse)AuthorLines
2018-10-21Move parse-fail tests to UIVadim Petrochenkov-15/+0
2017-11-03Detect `=` -> `:` typo in let bindingsEsteban Küber-1/+0
When encountering a let binding type error, attempt to parse as initializer instead. If successful, it is likely just a typo: ```rust fn main() { let x: Vec::with_capacity(10); } ``` ``` error: expected type, found `10` --> file.rs:3:31 | 3 | let x: Vec::with_capacity(10, 20); | -- ^^ | || | |help: did you mean assign here?: `=` | while parsing the type for `x` ```
2016-05-14syntax: Refactor parsing of method declarationsVadim Petrochenkov-0/+16
Fix spans and expected token lists, fix #33413 + other cosmetic improvements Add test for #33413 Convert between `Arg` and `ExplicitSelf` precisely Simplify pretty-printing for methods