2023-03-24 13:50:12 +00:00
|
|
|
error: `char` is both a module and a primitive type
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/prim-conflict.rs:4:6
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [char]
|
|
|
|
| ^^^^ ambiguous link
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/prim-conflict.rs:1:9
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
2020-12-30 04:16:16 +00:00
|
|
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the module, prefix with `mod@`
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
2020-08-25 20:21:02 +00:00
|
|
|
LL | /// [mod@char]
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++
|
2023-03-24 13:50:12 +00:00
|
|
|
help: to link to the primitive type, prefix with `prim@`
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [prim@char]
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++
|
2020-08-22 19:00:19 +00:00
|
|
|
|
2023-03-24 13:50:12 +00:00
|
|
|
error: `char` is both a module and a primitive type
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/prim-conflict.rs:10:6
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [type@char]
|
|
|
|
| ^^^^^^^^^ ambiguous link
|
|
|
|
|
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the module, prefix with `mod@`
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
2020-08-25 20:21:02 +00:00
|
|
|
LL | /// [mod@char]
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~
|
2023-03-24 13:50:12 +00:00
|
|
|
help: to link to the primitive type, prefix with `prim@`
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [prim@char]
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
error: incompatible link kind for `char`
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/prim-conflict.rs:19:6
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [struct@char]
|
2021-07-19 15:00:35 +00:00
|
|
|
| ^^^^^^^^^^^ this link resolved to a module, which is not a struct
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
2021-07-19 15:00:35 +00:00
|
|
|
help: to link to the module, prefix with `mod@`
|
|
|
|
|
|
|
|
|
LL | /// [mod@char]
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
error: incompatible link kind for `char`
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/prim-conflict.rs:26:10
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
|
LL | //! [struct@char]
|
2023-03-24 13:50:12 +00:00
|
|
|
| ^^^^^^^^^^^ this link resolved to a primitive type, which is not a struct
|
2021-07-19 15:00:35 +00:00
|
|
|
|
|
2023-03-24 13:50:12 +00:00
|
|
|
help: to link to the primitive type, prefix with `prim@`
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
2021-07-19 15:00:35 +00:00
|
|
|
LL | //! [prim@char]
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|