Skip to content

Rustc does not stop on error. #31804

Closed
Closed
@KalitaAlexey

Description

@KalitaAlexey
fn main() {
    println!("Hello, world!");
    let
}

It outputs

src/main.rs:4:1: 4:2 error: unexpected token: `<eof>`
src/main.rs:4 }
              ^
src/main.rs:4:1: 4:2 error: unexpected token: `<eof>`
src/main.rs:4 }
              ^

again and again. It does not stop.

rustc 1.8.0-nightly (57c357d89 2016-02-16)

Metadata

Metadata

Assignees

Labels

A-parserArea: The lexing & parsing of Rust source code to an ASTP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions