2020-11-21 16:08:58 +00:00
|
|
|
error: `true` is both a module and a builtin 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]
|
|
|
|
| ^^^^^^^^
|
|
|
|
help: to link to the builtin type, prefix with `prim@`
|
|
|
|
|
|
|
|
|
LL | /// [prim@true]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `ambiguous` is both a struct and a function
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:27:6
|
2020-11-21 16:08:58 +00:00
|
|
|
|
|
|
|
|
LL | /// [`ambiguous`] is ambiguous.
|
|
|
|
| ^^^^^^^^^^^ ambiguous link
|
|
|
|
|
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the struct, prefix with `struct@`
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [`struct@ambiguous`] is ambiguous.
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// [`ambiguous()`] is ambiguous.
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `ambiguous` is both a struct and a function
|
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
|
|
|
|
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the struct, prefix with `struct@`
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [struct@ambiguous] is ambiguous.
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// [ambiguous()] is ambiguous.
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2019-03-09 21:25:12 +00:00
|
|
|
error: `multi_conflict` is a struct, a function, and a macro
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:31:6
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [`multi_conflict`] is a three-way conflict.
|
|
|
|
| ^^^^^^^^^^^^^^^^ ambiguous link
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the struct, prefix with `struct@`
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// [`struct@multi_conflict`] is a three-way conflict.
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// [`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.
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
error: `type_and_value` is both a module and a constant
|
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 module, prefix with `mod@`
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
2020-08-25 20:21:02 +00:00
|
|
|
LL | /// Ambiguous [mod@type_and_value].
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
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].
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `foo::bar` is both an enum and a function
|
2020-11-29 02:10:37 +00:00
|
|
|
--> $DIR/ambiguity.rs:35:42
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
|
|
|
|
| ^^^^^^^^^^ ambiguous link
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-08-28 04:53:36 +00:00
|
|
|
help: to link to the enum, prefix with `enum@`
|
2019-02-28 18:54:19 +00:00
|
|
|
|
|
|
|
|
LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
help: to link to the function, add parentheses
|
|
|
|
|
|
|
|
|
LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2020-10-09 15:54:43 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2019-02-28 18:54:19 +00:00
|
|
|
|