2020-12-29 22:16:16 -06:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
2020-08-22 14:00:19 -05:00
|
|
|
//~^ NOTE lint level is defined
|
|
|
|
|
|
|
|
/// [char]
|
|
|
|
//~^ ERROR both a module and a builtin type
|
|
|
|
//~| NOTE ambiguous link
|
|
|
|
//~| HELP to link to the module
|
|
|
|
//~| HELP to link to the builtin type
|
|
|
|
|
|
|
|
/// [type@char]
|
|
|
|
//~^ ERROR both a module and a builtin type
|
|
|
|
//~| NOTE ambiguous link
|
|
|
|
//~| HELP to link to the module
|
|
|
|
//~| HELP to link to the builtin type
|
|
|
|
|
|
|
|
/// [mod@char] // ok
|
|
|
|
/// [prim@char] // ok
|
|
|
|
|
|
|
|
/// [struct@char]
|
|
|
|
//~^ ERROR incompatible link
|
2020-08-27 23:53:36 -05:00
|
|
|
//~| HELP prefix with `mod@`
|
2020-08-22 14:00:19 -05:00
|
|
|
//~| NOTE resolved to a module
|
|
|
|
pub mod char {}
|
|
|
|
|
|
|
|
pub mod inner {
|
|
|
|
//! [struct@char]
|
|
|
|
//~^ ERROR incompatible link
|
2020-08-27 23:53:36 -05:00
|
|
|
//~| HELP prefix with `prim@`
|
2020-08-22 14:00:19 -05:00
|
|
|
//~| NOTE resolved to a builtin type
|
|
|
|
}
|