mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
31 lines
708 B
Rust
31 lines
708 B
Rust
#![deny(rustdoc::broken_intra_doc_links)]
|
|
//~^ NOTE lint level is defined
|
|
|
|
/// [char]
|
|
//~^ ERROR both a module and a primitive type
|
|
//~| NOTE ambiguous link
|
|
//~| HELP to link to the module
|
|
//~| HELP to link to the primitive type
|
|
|
|
/// [type@char]
|
|
//~^ ERROR both a module and a primitive type
|
|
//~| NOTE ambiguous link
|
|
//~| HELP to link to the module
|
|
//~| HELP to link to the primitive type
|
|
|
|
/// [mod@char] // ok
|
|
/// [prim@char] // ok
|
|
|
|
/// [struct@char]
|
|
//~^ ERROR incompatible link
|
|
//~| HELP prefix with `mod@`
|
|
//~| NOTE resolved to a module
|
|
pub mod char {}
|
|
|
|
pub mod inner {
|
|
//! [struct@char]
|
|
//~^ ERROR incompatible link
|
|
//~| HELP prefix with `prim@`
|
|
//~| NOTE resolved to a primitive type
|
|
}
|