]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/intra-doc/field-ice.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / rustdoc-ui / intra-doc / field-ice.rs
1 #![deny(rustdoc::broken_intra_doc_links)]
2 //~^NOTE the lint level is defined here
3
4 /// [`Foo::bar`]
5 /// [`Foo::bar()`]
6 //~^ERROR incompatible link kind for `Foo::bar`
7 //~|HELP to link to the field, remove the disambiguator
8 //~|NOTE this link resolved to a field, which is not a function
9 pub struct Foo {
10     pub bar: u8
11 }