mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-24 14:08:17 +00:00
Fixes #139445. The additional errors aren't great but the first one is still good and it's the most important, and imperfect errors are better than ICEing.
7 lines
218 B
Rust
7 lines
218 B
Rust
fn main() {
|
|
assert_eq!(3, 'a,)
|
|
//~^ ERROR expected `while`, `for`, `loop` or `{` after a label
|
|
//~| ERROR expected `while`, `for`, `loop` or `{` after a label
|
|
//~| ERROR expected expression, found ``
|
|
}
|