-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an AST
Description
STR
fn main() {
S { x: 4,
y: 5 };
}
fn foo() {
Expected Result
An error message pointing to foo
Actual Result
Compiling playground v0.0.1 (/playground)
error: this file contains an un-closed delimiter
--> src/main.rs:5:12
|
2 | S { x: 4,
| - this delimiter might not be properly closed...
3 | y: 5 };
| - ...as it matches this but it has different indentation
4 | }
5 | fn foo() {
| - ^
| |
| un-closed delimiter
The heuristic feels incorrect to me - the delimiter on S
looks perfectly well-closed.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an AST