1 error: `char` is both a module and a builtin type
2 --> $DIR/intra-link-prim-conflict.rs:4:6
7 note: the lint level is defined here
8 --> $DIR/intra-link-prim-conflict.rs:1:9
10 LL | #![deny(broken_intra_doc_links)]
11 | ^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the module, prefix with `mod@`
16 help: to link to the builtin type, prefix with `prim@`
21 error: `char` is both a module and a builtin type
22 --> $DIR/intra-link-prim-conflict.rs:10:6
25 | ^^^^^^^^^ ambiguous link
27 help: to link to the module, prefix with `mod@`
31 help: to link to the builtin type, prefix with `prim@`
36 error: incompatible link kind for `char`
37 --> $DIR/intra-link-prim-conflict.rs:19:6
39 LL | /// [struct@char]
40 | ^^^^^^^^^^^ help: to link to the module, prefix with `mod@`: `mod@char`
42 = note: this link resolved to a module, which is not a struct
44 error: incompatible link kind for `char`
45 --> $DIR/intra-link-prim-conflict.rs:26:10
47 LL | //! [struct@char]
48 | ^^^^^^^^^^^ help: to link to the builtin type, prefix with `prim@`: `prim@char`
50 = note: this link resolved to a builtin type, which is not a struct
52 error: aborting due to 4 previous errors