Closed
Description
Any code which has correct ()
and incorrect braces like f)
after them will produce incorrect this block is empty, you might have not meant to close it
which will point at the valid parentheses. This behaviour is the same on all channels.
fn main() {}
fn f) {}
Errors:
Compiling playground v0.0.1 (/playground)
error: unexpected closing delimiter: `)`
--> src/main.rs:3:5
|
1 | fn main() {}
| -- this block is empty, you might have not meant to close it
2 |
3 | fn f) {}
| ^ unexpected closing delimiter
error: aborting due to previous error
error: could not compile `playground`.
To learn more, run the command again with --verbose.