2021-07-12 19:04:51 +08:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
|
|
|
//~^NOTE the lint level is defined here
|
|
|
|
|
|
|
|
/// [`Foo::bar`]
|
|
|
|
/// [`Foo::bar()`]
|
|
|
|
//~^ERROR incompatible link kind for `Foo::bar`
|
2024-09-19 16:42:55 -05:00
|
|
|
//~|HELP to link to the field, prefix with `field@`
|
2021-07-12 19:04:51 +08:00
|
|
|
//~|NOTE this link resolved to a field, which is not a function
|
|
|
|
pub struct Foo {
|
2024-09-19 16:42:55 -05:00
|
|
|
pub bar: u8,
|
2021-07-12 19:04:51 +08:00
|
|
|
}
|