
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.
6 lines
218 B
Rust
6 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 ``
|
|
}
|