Some error recovery in the parser
This commit is contained in:
parent
ffd2a0b9d7
commit
847a0d2150
12 changed files with 173 additions and 41 deletions
|
@ -23,7 +23,7 @@ impl Foo {
|
|||
fn main() {
|
||||
while Foo {
|
||||
x: 3 //~ ERROR expected type, found `3`
|
||||
}.hi() {
|
||||
}.hi() { //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `{`
|
||||
println!("yo");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue