Content-Length: 24144 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../vec/../../error_codes/./E0753.html

E0753 - 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 E0753

An inner doc comment was used in an invalid context.

Erroneous code example:

fn foo() {}
//! foo
// ^ error!
fn main() {}

Inner document can only be used before items. For example:

//! A working comment applied to the module!
fn foo() {
    //! Another working comment!
}
fn main() {}

In case you want to document the item following the doc comment, you might want to use outer doc comment:

#![allow(unused)]
fn main() {
//doc.rust-lang.org/ I am an outer doc comment
#[doc = "I am also an outer doc comment!"]
fn foo() {
    // ...
}
}








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/string/../error/../string/../vec/../../error_codes/./E0753.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy