1 error: `char` is both a module and a builtin type
2 --> $DIR/prim-conflict.rs:4:6
7 note: the lint level is defined here
8 --> $DIR/prim-conflict.rs:1:9
10 LL | #![deny(rustdoc::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/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/prim-conflict.rs:19:6
39 LL | /// [struct@char]
40 | ^^^^^^^^^^^ this link resolved to a module, which is not a struct
42 help: to link to the module, prefix with `mod@`
47 error: incompatible link kind for `char`
48 --> $DIR/prim-conflict.rs:26:10
50 LL | //! [struct@char]
51 | ^^^^^^^^^^^ this link resolved to a builtin type, which is not a struct
53 help: to link to the builtin type, prefix with `prim@`
58 error: aborting due to 4 previous errors