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