Content-Length: 24263 | pFad | https://doc.rust-lang.org/std/pin/../cmp/../fs/../iter/../../../std/../../error_codes/./E0584.html

E0584 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0584

A doc comment that is not attached to anything has been encountered.

Erroneous code example:

#![allow(unused)]
fn main() {
trait Island {
    fn lost();

    //doc.rust-lang.org/ I'm lost!
}
}

A little reminder: a doc comment has to be placed before the item it’s supposed to document. So if you want to document the Island trait, you need to put a doc comment before it, not inside it. Same goes for the lost method: the doc comment needs to be before it:

#![allow(unused)]
fn main() {
//doc.rust-lang.org/ I'm THE island!
trait Island {
    //doc.rust-lang.org/ I'm lost!
    fn lost();
}
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/pin/../cmp/../fs/../iter/../../../std/../../error_codes/./E0584.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy