Reading Redirecting..., it says:
Consider an example block that looks like this:
/// Some documentation. # fn foo() {}
It will render like this:
/// Some documentation.
Yes, that's right: you can add lines that start with #, and they will be hidden from the output, but will be used when compiling your code.
Well, that doesn't seem to work:
/// Test some documentation
# fn foo() {}
$ cargo test
Compiling diamond-drops-node v0.1.0-a (file:///home/james/dod/node)
error: expected `[`, found `fn`
--> node/src/modules/collation/blob.rs:178:7
|
178 | # fn foo() {}
| ^^ expected `[`
rustc 1.27.0-nightly (79252ff4e 2018-04-29)