Open
Description
let s = String::new();
fn main() {
println!("Hello world");
}
Compiling playground v0.0.1 (/playground)
error: expected item, found keyword `let`
--> src/main.rs:1:1
|
1 | let s = String::new();
| ^^^ expected item
Could we have some suggestions what kind of item should be put there? :)
Also there seems to be no error code which is strange..
rustc 1.37.0-nightly (02564de47 2019-06-10)
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: The lexing & parsing of Rust source code to an ASTCategory: An issue proposing an enhancement or a PR with one.Diagnostics: Confusing error or lint; hard to understand for new users.Relevant to the compiler team, which will review and decide on the PR/issue.