1 #![deny(rustdoc::broken_intra_doc_links)]
2 #![feature(intra_doc_pointers)]
3 // These are links that could reasonably expected to work, but don't.
5 // `[]` isn't supported because it had too many false positives.
9 //! [Y]([T;N]::not_here)
11 // These don't work because markdown syntax doesn't allow it.
12 //! [[T]::rotate_left] //~ ERROR unresolved link to `T`
14 //![Z]([T; N]::map) //~ ERROR unresolved link to `Z`
17 //! [Z][] //~ ERROR unresolved link to `Z`
19 //! [Z]: [T; N]::map //~ ERROR unresolved link to `Z`
21 // `()` isn't supported because it had too many false positives.
23 //! [X]((,)::not_here)
26 // FIXME: Associated items on some primitives aren't working, because the impls
27 // are part of the compiler instead of being part of the source code.
28 //! [unit::eq] //~ ERROR unresolved
29 //! [tuple::eq] //~ ERROR unresolved
30 //! [fn::eq] //~ ERROR unresolved
32 // FIXME(#78800): This breaks because it's a blanket impl
33 // (I think? Might break for other reasons too.)
34 //! [reference::deref] //~ ERROR unresolved