]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-doc/non-path-primitives.rs
Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic
[rust.git] / src / test / rustdoc-ui / intra-doc / non-path-primitives.rs
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.
4
5 // `[]` isn't supported because it had too many false positives.
6 //! [X]([T]::not_here)
7 //! [Y](&[]::not_here)
8 //! [X]([]::not_here)
9 //! [Y]([T;N]::not_here)
10
11 // These don't work because markdown syntax doesn't allow it.
12 //! [[T]::rotate_left] //~ ERROR unresolved link to `T`
13 //! [&[]::not_here]
14 //![Z]([T; N]::map) //~ ERROR unresolved link to `Z`
15 //! [`[T; N]::map`]
16 //! [[]::map]
17 //! [Z][] //~ ERROR unresolved link to `Z`
18 //!
19 //! [Z]: [T; N]::map //~ ERROR unresolved link to `Z`
20
21 // `()` isn't supported because it had too many false positives.
22 //! [()::not_here]
23 //! [X]((,)::not_here)
24 //! [(,)::not_here]
25
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
31
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