Closed
Description
openedon Oct 19, 2022
I tried this code:
use std::process:Command;
use std::fs:File;
fn main() { }
I expected to see this happen: I expected to see two diagnostic messages, telling me about the distinct parse errors on lines 1 and 2.
Instead, this happened: The first error was treated as non-recoverable, yielding this output (playground):
error: expected one of `::`, `;`, or `as`, found `:`
--> src/main.rs:1:17
|
1 | [use std::process:Command;](https://play.rust-lang.org/#)
| ^ expected one of `::`, `;`, or `as`
error: could not compile `playground` due to previous error
I'm assuming recovering in the face of this parse error would be a relatively simple task, given that there is already the :
present that should be a strong hint that someone meant to type ::
. So I'm tagging this with labels indicating that its a good opportunity for someone who wants to acquaint themselves with the code base.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment