mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
12 lines
322 B
Rust
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
|
|
}
|