]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-doc/prim-conflict.rs
Rollup merge of #96609 - ibraheemdev:arc-downcast-unchecked, r=m-ou-se
[rust.git] / src / test / rustdoc-ui / intra-doc / prim-conflict.rs
1 #![deny(rustdoc::broken_intra_doc_links)]
2 //~^ NOTE lint level is defined
3
4 /// [char]
5 //~^ ERROR both a module and a builtin type
6 //~| NOTE ambiguous link
7 //~| HELP to link to the module
8 //~| HELP to link to the builtin type
9
10 /// [type@char]
11 //~^ ERROR both a module and a builtin type
12 //~| NOTE ambiguous link
13 //~| HELP to link to the module
14 //~| HELP to link to the builtin type
15
16 /// [mod@char] // ok
17 /// [prim@char] // ok
18
19 /// [struct@char]
20 //~^ ERROR incompatible link
21 //~| HELP prefix with `mod@`
22 //~| NOTE resolved to a module
23 pub mod char {}
24
25 pub mod inner {
26     //! [struct@char]
27     //~^ ERROR incompatible link
28     //~| HELP prefix with `prim@`
29     //~| NOTE resolved to a builtin type
30 }