Skip to content

FAQ links in error messages #2092

Closed
Closed
@nikomatsakis

Description

@nikomatsakis

On IRC we were discussing how, for complex errors, we ought to put a link to a FAQ in the error message. Perhaps we could even embed the rust manual and print the relevant paragraph if you use rustc --explain or something.

Some examples of errors that could benefit:

  • ret disallowed from within sugared closure {|| ... }
  • ; required after a statement with non-unit type
  • etc.

This of course would also entail making such a FAQ. :)

Metadata

Metadata

Assignees

Labels

A-frontendArea: Compiler frontend (errors, parsing and HIR)P-mediumMedium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions