]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/intra-doc/prim-conflict.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / rustdoc-ui / intra-doc / prim-conflict.stderr
1 error: `char` is both a module and a builtin type
2   --> $DIR/prim-conflict.rs:4:6
3    |
4 LL | /// [char]
5    |      ^^^^ ambiguous link
6    |
7 note: the lint level is defined here
8   --> $DIR/prim-conflict.rs:1:9
9    |
10 LL | #![deny(rustdoc::broken_intra_doc_links)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the module, prefix with `mod@`
13    |
14 LL | /// [mod@char]
15    |      ++++
16 help: to link to the builtin type, prefix with `prim@`
17    |
18 LL | /// [prim@char]
19    |      +++++
20
21 error: `char` is both a module and a builtin type
22   --> $DIR/prim-conflict.rs:10:6
23    |
24 LL | /// [type@char]
25    |      ^^^^^^^^^ ambiguous link
26    |
27 help: to link to the module, prefix with `mod@`
28    |
29 LL | /// [mod@char]
30    |      ~~~~
31 help: to link to the builtin type, prefix with `prim@`
32    |
33 LL | /// [prim@char]
34    |      ~~~~~
35
36 error: incompatible link kind for `char`
37   --> $DIR/prim-conflict.rs:19:6
38    |
39 LL | /// [struct@char]
40    |      ^^^^^^^^^^^ this link resolved to a module, which is not a struct
41    |
42 help: to link to the module, prefix with `mod@`
43    |
44 LL | /// [mod@char]
45    |      ~~~~
46
47 error: incompatible link kind for `char`
48   --> $DIR/prim-conflict.rs:26:10
49    |
50 LL |     //! [struct@char]
51    |          ^^^^^^^^^^^ this link resolved to a builtin type, which is not a struct
52    |
53 help: to link to the builtin type, prefix with `prim@`
54    |
55 LL |     //! [prim@char]
56    |          ~~~~~
57
58 error: aborting due to 4 previous errors
59