Closed
Description
$ rustc --version
rustc 1.20.0-nightly (bf0a9e0b4 2017-07-10)
$
$ rustc tmp.rs
error: expected expression, found `<eof>`
--> tmp.rs:1:26
|
1 | fn main () { let x = | } |
| ^
error: internal compiler error: attempted to bump the parser past EOF (may be stuck in a loop)
--> tmp.rs:1:26
|
1 | fn main () { let x = | } |
| ^
error: aborting due to 2 previous errors
$
$ rustc-1.18.0 tmp.rs
error: expected expression, found `<eof>`
--> tmp.rs:1:26
|
1 | fn main () { let x = | } |
| ^
error: internal compiler error: attempted to bump the parser past EOF (may be stuck in a loop)
--> tmp.rs:1:26
|
1 | fn main () { let x = | } |
| ^
error: aborting due to 2 previous errors
$
$ cat tmp.rs
fn main () { let x = | } |
$
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
DanielJin21 commentedon Aug 8, 2017
Even more minimal test case:
fn main() { | } |
The parser for some reason is expecting a pattern by end of the second
|
.goffrie commentedon Oct 8, 2017
The ICE is fixed in nightly.
Add compile-fail test for rust-lang#43196
Add compile-fail test for rust-lang#43196
Add compile-fail test for rust-lang#43196