I tried this code:
/// [Self]
pub struct S { u: usize }
I expected to see this happen: The link behaves the same as struct@S
Instead, this happened: Rustdoc says the link failed to resolve:
warning: unresolved link to `Self`
--> s.rs:1:6
|
1 | /// [Self]
| ^^^^ the module `s` contains no item named `Self`
Note that Self::u resolves fine.
Meta
rustdoc --version:
rustdoc 1.48.0-nightly (ef663a8a4 2020-09-30)
I tried this code:
I expected to see this happen: The link behaves the same as
struct@SInstead, this happened: Rustdoc says the link failed to resolve:
Note that
Self::uresolves fine.Meta
rustdoc --version: