1 #![allow(unclosed_html_tags)]
2 #![deny(broken_intra_doc_links)]
3 //~^ NOTE lint level is defined
5 // FIXME: this should say that it was skipped (maybe an allowed by default lint?)
8 /// [path::to::nonexistent::module]
9 //~^ ERROR unresolved link
10 //~| NOTE `intra_link_errors` contains no item named `path`
12 /// [path::to::nonexistent::macro!]
13 //~^ ERROR unresolved link
14 //~| NOTE `intra_link_errors` contains no item named `path`
16 /// [type@path::to::nonexistent::type]
17 //~^ ERROR unresolved link
18 //~| NOTE `intra_link_errors` contains no item named `path`
20 /// [std::io::not::here]
21 //~^ ERROR unresolved link
22 //~| NOTE `io` contains no item named `not`
24 /// [type@std::io::not::here]
25 //~^ ERROR unresolved link
26 //~| NOTE `io` contains no item named `not`
28 /// [std::io::Error::x]
29 //~^ ERROR unresolved link
30 //~| NOTE the struct `Error` has no field
32 /// [std::io::ErrorKind::x]
33 //~^ ERROR unresolved link
34 //~| NOTE the enum `ErrorKind` has no variant
37 //~^ ERROR unresolved link
38 //~| NOTE `f` is a function, not a module
41 //~^ ERROR unresolved link
42 //~| NOTE `f` is a function, not a module
45 //~^ ERROR unresolved link
46 //~| NOTE struct `S` has no field or associated item
49 //~^ ERROR unresolved link
50 //~| NOTE struct `S` has no field or associated item
53 //~^ ERROR unresolved link
54 //~| NOTE enum `E` has no variant or associated item
57 //~^ ERROR unresolved link
58 //~| NOTE the builtin type `u8` has no associated item named `not_found`
60 /// [std::primitive::u8::not_found]
61 //~^ ERROR unresolved link
62 //~| NOTE the builtin type `u8` has no associated item named `not_found`
64 /// [type@Vec::into_iter]
65 //~^ ERROR unresolved link
66 //~| HELP to link to the associated function, add parentheses
67 //~| NOTE this link resolves to the associated function `into_iter`
70 //~^ ERROR unresolved link
71 //~| HELP to link to the struct, prefix with `struct@`
72 //~| NOTE this link resolves to the struct `S`
77 pub enum E { A, B, C }
80 //~^ ERROR unresolved link
81 //~| HELP to link to the associated function
82 //~| NOTE not in the type namespace
88 //~^ ERROR unresolved link
89 //~| HELP to link to the associated function
90 //~| NOTE not in the type namespace
93 //~^ ERROR unresolved link
94 //~| NOTE `T` has no macro named `h`
100 //~^ ERROR unresolved link
101 //~| HELP to link to the macro
102 //~| NOTE not in the value namespace