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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `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()]
|
2020-08-04 22:39:18 -05:00
|
|
|
//~^ ERROR incompatible link kind for `c`
|
2020-08-04 22:31:36 -05:00
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-05 19:46:02 -05:00
|
|
|
|
|
|
|
/// Link to [const@f]
|
|
|
|
//~^ ERROR incompatible link kind for `f`
|
|
|
|
//~| NOTE this link resolved
|
|
|
|
//~| HELP use its disambiguator
|
2020-08-02 19:45:24 -05:00
|
|
|
pub fn f() {}
|