2020-12-30 04:16:16 +00:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
2020-08-22 19:00:19 +00:00
|
|
|
//~^ NOTE lint level is defined
|
|
|
|
|
|
|
|
/// [char]
|
2023-03-24 13:50:12 +00:00
|
|
|
//~^ ERROR both a module and a primitive type
|
2020-08-22 19:00:19 +00:00
|
|
|
//~| NOTE ambiguous link
|
|
|
|
//~| HELP to link to the module
|
2023-03-24 13:50:12 +00:00
|
|
|
//~| HELP to link to the primitive type
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
/// [type@char]
|
2023-03-24 13:50:12 +00:00
|
|
|
//~^ ERROR both a module and a primitive type
|
2020-08-22 19:00:19 +00:00
|
|
|
//~| NOTE ambiguous link
|
|
|
|
//~| HELP to link to the module
|
2023-03-24 13:50:12 +00:00
|
|
|
//~| HELP to link to the primitive type
|
2020-08-22 19:00:19 +00:00
|
|
|
|
|
|
|
/// [mod@char] // ok
|
|
|
|
/// [prim@char] // ok
|
|
|
|
|
|
|
|
/// [struct@char]
|
|
|
|
//~^ ERROR incompatible link
|
2020-08-28 04:53:36 +00:00
|
|
|
//~| HELP prefix with `mod@`
|
2020-08-22 19:00:19 +00:00
|
|
|
//~| NOTE resolved to a module
|
|
|
|
pub mod char {}
|
|
|
|
|
|
|
|
pub mod inner {
|
|
|
|
//! [struct@char]
|
|
|
|
//~^ ERROR incompatible link
|
2020-08-28 04:53:36 +00:00
|
|
|
//~| HELP prefix with `prim@`
|
2023-03-24 13:50:12 +00:00
|
|
|
//~| NOTE resolved to a primitive type
|
2020-08-22 19:00:19 +00:00
|
|
|
}
|