2023-03-24 13:50:12 +00:00
|
|
|
error: `true` is both a module and a primitive type
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:38:6
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
2020-11-21 16:08:58 +00:00
|
|
|
LL | /// [true]
|
|
|
|
| ^^^^ ambiguous link
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:1:9
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
2020-12-30 04:16:16 +00:00
|
|
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-11-21 16:08:58 +00:00
|
|
|
help: to link to the module, prefix with `mod@`
|
|
|
|
|
|
|
|
|
LL | /// [mod@true]
|
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-11-21 16:08:58 +00:00
|
|
|
|
|
|
|
|
LL | /// [prim@true]
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++
|
2020-11-21 16:08:58 +00:00
|
|
|
|
2023-03-03 13:54:56 +00:00
|
|
|
error: `ambiguous` is both a function and a struct
|
2021-07-19 15:00:35 +00:00
|
|
|
--> $DIR/ambiguity.rs:27:7
|
2020-11-21 16:08:58 +00:00
|
|
|
|
|
|
|
|
LL | /// [`ambiguous`] is ambiguous.
|
2021-07-19 15:00:35 +00:00
|
|
|
| ^^^^^^^^^ ambiguous link
|
2020-11-21 16:08:58 +00:00
|
|
|
|
|
2019-02-28 18:54:19 +00:00
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// [`ambiguous()`] is ambiguous.
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2023-03-03 13:54:56 +00:00
|
|
|
help: to link to the struct, prefix with `struct@`
|
|
|
|
|
|
|
|
|
LL | /// [`struct@ambiguous`] is ambiguous.
|
|
|
|
| +++++++
|
2019-02-28 18:54:19 +00:00
|
|
|
|
2023-03-03 13:54:56 +00:00
|
|
|
error: `ambiguous` is both a function and a struct
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:29:6
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [ambiguous] is ambiguous.
|
|
|
|
| ^^^^^^^^^ ambiguous link
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-02-28 18:54:19 +00:00
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// [ambiguous()] is ambiguous.
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2023-03-03 13:54:56 +00:00
|
|
|
help: to link to the struct, prefix with `struct@`
|
|
|
|
|
|
|
|
|
LL | /// [struct@ambiguous] is ambiguous.
|
|
|
|
| +++++++
|
2019-02-28 18:54:19 +00:00
|
|
|
|
2023-03-03 13:54:56 +00:00
|
|
|
error: `multi_conflict` is a function, a struct, and a macro
|
2021-07-19 15:00:35 +00:00
|
|
|
--> $DIR/ambiguity.rs:31:7
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [`multi_conflict`] is a three-way conflict.
|
2021-07-19 15:00:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^ ambiguous link
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-02-28 18:54:19 +00:00
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// [`multi_conflict()`] is a three-way conflict.
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2023-03-03 13:54:56 +00:00
|
|
|
help: to link to the struct, prefix with `struct@`
|
|
|
|
|
|
|
|
|
LL | /// [`struct@multi_conflict`] is a three-way conflict.
|
|
|
|
| +++++++
|
2019-03-09 21:32:07 +00:00
|
|
|
help: to link to the macro, add an exclamation mark
|
2019-03-09 21:25:12 +00:00
|
|
|
|
|
2019-03-09 21:32:07 +00:00
|
|
|
LL | /// [`multi_conflict!`] is a three-way conflict.
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2019-02-28 18:54:19 +00:00
|
|
|
|
2023-03-03 13:54:56 +00:00
|
|
|
error: `type_and_value` is both a constant and a module
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:33:16
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// Ambiguous [type_and_value].
|
|
|
|
| ^^^^^^^^^^^^^^ ambiguous link
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the constant, prefix with `const@`
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// Ambiguous [const@type_and_value].
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++
|
2023-03-03 13:54:56 +00:00
|
|
|
help: to link to the module, prefix with `mod@`
|
|
|
|
|
|
|
|
|
LL | /// Ambiguous [mod@type_and_value].
|
|
|
|
| ++++
|
2019-02-28 18:54:19 +00:00
|
|
|
|
2023-03-03 13:54:56 +00:00
|
|
|
error: `foo::bar` is both a function and an enum
|
2021-07-19 15:00:35 +00:00
|
|
|
--> $DIR/ambiguity.rs:35:43
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
|
2021-07-19 15:00:35 +00:00
|
|
|
| ^^^^^^^^ ambiguous link
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-02-28 18:54:19 +00:00
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2023-03-03 13:54:56 +00:00
|
|
|
help: to link to the enum, prefix with `enum@`
|
|
|
|
|
|
|
|
|
LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
|
|
|
|
| +++++
|
2019-02-28 18:54:19 +00:00
|
|
|
|
2020-10-09 15:54:43 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2019-02-28 18:54:19 +00:00
|
|
|
|