mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
fixes https://github.com/rust-lang/rust/issues/91274 Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
23 lines
578 B
Plaintext
23 lines
578 B
Plaintext
error: `m` is both a module and a macro
|
|
--> $DIR/bad-link-to-proc-macro.rs:4:15
|
|
|
|
|
LL | //! Link to [`m`].
|
|
| ^ ambiguous link
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/bad-link-to-proc-macro.rs:2:9
|
|
|
|
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
help: to link to the module, prefix with `mod@`
|
|
|
|
|
LL | //! Link to [`mod@m`].
|
|
| ++++
|
|
help: to link to the macro, add an exclamation mark
|
|
|
|
|
LL | //! Link to [`m!`].
|
|
| +
|
|
|
|
error: aborting due to 1 previous error
|
|
|