Closed
Description
This program:
fn main() {
let name = "foo";
println!("{} {}", name);
}
Gives this error:
error: invalid reference to argument `1` (there is 1 argument)
Both things having 1 here is confusing, it'd be nicer if we didn't compare a zero-indexed and a one-indexed number.
Additionally, a note could make this easier to understand overall too.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsCategory: An issue proposing an enhancement or a PR with one.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.Working group: Diagnostics