Closed
Description
This errors but doesn't point out the problem very well:
fn fun() -> Option<int> {
Some<7>
}
fn main(){
fun();
}
The error:
<anon>:4:1: 4:2 error: unexpected token: `}`
<anon>:4 }
^
playpen: application terminated with error code 101
Better would be:
fn fun() -> Option<int> {
Some<7>
// ^~~~~~~ These should be `()` and not`<>`
}
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.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.