2020-08-02 19:45:24 -05:00
|
|
|
#![deny(broken_intra_doc_links)]
|
|
|
|
//~^ NOTE lint level is defined
|
|
|
|
pub enum S {}
|
|
|
|
|
|
|
|
macro_rules! m {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
static s: usize = 0;
|
|
|
|
const c: usize = 0;
|
|
|
|
|
|
|
|
trait T {}
|
|
|
|
|
|
|
|
/// Link to [struct@S]
|
|
|
|
//~^ ERROR unresolved link to `S`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [mod@S]
|
|
|
|
//~^ ERROR unresolved link to `S`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [union@S]
|
|
|
|
//~^ ERROR unresolved link to `S`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [trait@S]
|
|
|
|
//~^ ERROR unresolved link to `S`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [struct@T]
|
|
|
|
//~^ ERROR unresolved link to `T`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [derive@m]
|
|
|
|
//~^ ERROR unresolved link to `m`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [const@s]
|
|
|
|
//~^ ERROR unresolved link to `s`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [static@c]
|
|
|
|
//~^ ERROR unresolved link to `c`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [fn@c]
|
|
|
|
//~^ ERROR unresolved link to `c`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
|
|
|
|
/// Link to [c()]
|
|
|
|
//~^ ERROR unresolved link to `c`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
pub fn f() {}
|