-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-parserparser issuesparser issuesC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
This is supported rust syntax since rust 1.46, but rust-analyzer fail to parse it in some cases:
The following code compiles fine, but rust-analizer incorrectly reports an error:
fn main() {
let foo = (String::new(),);
foo.0.as_str(); // OK
foo.0. as_str(); // ERROR in rust-analyzer! (Syntax Error: expected SEMICOLON);
}
Metadata
Metadata
Assignees
Labels
A-parserparser issuesparser issuesC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now