1 #![deny(broken_intra_doc_links)]
2 //~^ NOTE lint level is defined
4 // FIXME: this should say that it was skipped (maybe an allowed by default lint?)
7 // FIXME: this could say which path was the first to not be found (in this case, `path`)
8 /// [path::to::nonexistent::module]
9 //~^ ERROR unresolved link
10 //~| NOTE no item named `path::to` is in scope
14 //~^ ERROR unresolved link
15 //~| NOTE this link partially resolves
16 //~| NOTE `f` is a function, not a module
19 //~^ ERROR unresolved link
20 //~| NOTE this link partially resolves
21 //~| NOTE no `A` in `S`
24 //~^ ERROR unresolved link
25 //~| NOTE this link partially resolves
26 //~| NOTE no `fmt` in `S`
29 //~^ ERROR unresolved link
30 //~| NOTE this link partially resolves
31 //~| NOTE no `D` in `E`
34 //~^ ERROR unresolved link
35 //~| NOTE the builtin type `u8` does not have an associated item named `not_found`
38 //~^ ERROR unresolved link
39 //~| HELP to link to the struct, use its disambiguator
40 //~| NOTE this link resolves to the struct `S`
45 pub enum E { A, B, C }
48 //~^ ERROR unresolved link
49 //~| HELP to link to the associated function
50 //~| NOTE not in the type namespace
56 //~^ ERROR unresolved link
57 //~| HELP to link to the associated function
58 //~| NOTE not in the type namespace
61 //~^ ERROR unresolved link
62 //~| NOTE no item named `T::h`