We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b4f855 commit 6911dc4Copy full SHA for 6911dc4
src/doc/rustc-dev-guide/src/diagnostics/error-codes.md
@@ -93,3 +93,12 @@ struct_span_code_err!(...)
93
For an example of a PR adding an error code, see [#76143].
94
95
[#76143]: https://github.com/rust-lang/rust/pull/76143
96
+
97
+## Running error code doctests
98
99
+To test the examples added in `rustc_error_codes/src/error_codes`, run the
100
+error index generator using:
101
102
+```
103
+./x test ./src/tools/error_index_generator
104
0 commit comments