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?)
5 /// [invalid intra-doc syntax!!]
7 /// [path::to::nonexistent::module]
8 //~^ ERROR unresolved link
9 //~| NOTE no item named `path` in scope
11 /// [path::to::nonexistent::macro!]
12 //~^ ERROR unresolved link
13 //~| NOTE no item named `path` in scope
15 /// [type@path::to::nonexistent::type]
16 //~^ ERROR unresolved link
17 //~| NOTE no item named `path` in scope
19 /// [std::io::not::here]
20 //~^ ERROR unresolved link
21 //~| NOTE no item named `not` in module `io`
23 /// [type@std::io::not::here]
24 //~^ ERROR unresolved link
25 //~| NOTE no item named `not` in module `io`
27 /// [std::io::Error::x]
28 //~^ ERROR unresolved link
29 //~| NOTE the struct `Error` has no field
31 /// [std::io::ErrorKind::x]
32 //~^ ERROR unresolved link
33 //~| NOTE the enum `ErrorKind` has no variant
36 //~^ ERROR unresolved link
37 //~| NOTE `f` is a function, not a module
40 //~^ ERROR unresolved link
41 //~| NOTE `f` is a function, not a module
44 //~^ ERROR unresolved link
45 //~| NOTE struct `S` has no field or associated item
48 //~^ ERROR unresolved link
49 //~| NOTE struct `S` has no field or associated item
52 //~^ ERROR unresolved link
53 //~| NOTE enum `E` has no variant or associated item
56 //~^ ERROR unresolved link
57 //~| NOTE the builtin type `u8` has no associated item named `not_found`
59 /// [std::primitive::u8::not_found]
60 //~^ ERROR unresolved link
61 //~| NOTE the builtin type `u8` has no associated item named `not_found`
63 /// [type@Vec::into_iter]
64 //~^ ERROR unresolved link
65 //~| HELP to link to the associated function, add parentheses
66 //~| NOTE this link resolves to the associated function `into_iter`
69 //~^ ERROR unresolved link
70 //~| HELP to link to the struct, prefix with `struct@`
71 //~| NOTE this link resolves to the struct `S`
76 pub enum E { A, B, C }
79 //~^ ERROR unresolved link
80 //~| HELP to link to the associated function
81 //~| NOTE not in the type namespace
87 //~^ ERROR unresolved link
88 //~| HELP to link to the associated function
89 //~| NOTE not in the type namespace
92 //~^ ERROR unresolved link
93 //~| NOTE `T` has no macro named `h`
99 //~^ ERROR unresolved link
100 //~| HELP to link to the macro
101 //~| NOTE not in the value namespace