rust/tests/rustdoc-ui/intra-doc/field-ice.rs
2023-01-11 09:32:08 +00:00

12 lines
322 B
Rust

#![deny(rustdoc::broken_intra_doc_links)]
//~^NOTE the lint level is defined here
/// [`Foo::bar`]
/// [`Foo::bar()`]
//~^ERROR incompatible link kind for `Foo::bar`
//~|HELP to link to the field, remove the disambiguator
//~|NOTE this link resolved to a field, which is not a function
pub struct Foo {
pub bar: u8
}