compiler/rustc_error_codes/src/error_codes/E0585.md MARKDOWN 22 lines View on github.com → Search inside
1A documentation comment that doesn't document anything was found.23Erroneous code example:45```compile_fail,E05856fn main() {7    // The following doc comment will fail:8    /// This is a useless doc comment!9}10```1112Documentation comments need to be followed by items, including functions,13types, modules, etc. Examples:1415```16/// I'm documenting the following struct:17struct Foo;1819/// I'm documenting the following function:20fn foo() {}21```

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.