summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/intra-doc/prim-conflict.stderr
blob: 03ce8f15f0a5e8699b5d231f0596b4ea00554c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
error: `char` is both a module and a primitive type
  --> $DIR/prim-conflict.rs:4:6
   |
LL | /// [char]
   |      ^^^^ ambiguous link
   |
note: the lint level is defined here
  --> $DIR/prim-conflict.rs:1:9
   |
LL | #![deny(rustdoc::broken_intra_doc_links)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: to link to the module, prefix with `mod@`
   |
LL | /// [mod@char]
   |      ++++
help: to link to the primitive type, prefix with `prim@`
   |
LL | /// [prim@char]
   |      +++++

error: `char` is both a module and a primitive type
  --> $DIR/prim-conflict.rs:10:6
   |
LL | /// [type@char]
   |      ^^^^^^^^^ ambiguous link
   |
help: to link to the module, prefix with `mod@`
   |
LL | /// [mod@char]
   |      ~~~~
help: to link to the primitive type, prefix with `prim@`
   |
LL | /// [prim@char]
   |      ~~~~~

error: incompatible link kind for `char`
  --> $DIR/prim-conflict.rs:19:6
   |
LL | /// [struct@char]
   |      ^^^^^^^^^^^ this link resolved to a module, which is not a struct
   |
help: to link to the module, prefix with `mod@`
   |
LL | /// [mod@char]
   |      ~~~~

error: incompatible link kind for `char`
  --> $DIR/prim-conflict.rs:26:10
   |
LL |     //! [struct@char]
   |          ^^^^^^^^^^^ this link resolved to a primitive type, which is not a struct
   |
help: to link to the primitive type, prefix with `prim@`
   |
LL |     //! [prim@char]
   |          ~~~~~

error: aborting due to 4 previous errors