]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | //! Documenting the kinds of lints emitted by rustdoc. |
2 | //! | |
3 | //! ``` | |
4 | //! println!("sup"); | |
5 | //! ``` | |
6 | ||
6a06907d | 7 | #![deny(rustdoc::all)] |
0731742a XL |
8 | |
9 | /// what up, let's make an [error] | |
10 | /// | |
11 | /// ``` | |
12 | /// println!("sup"); | |
13 | /// ``` | |
3dfed10e | 14 | pub fn link_error() {} //~^^^^^ ERROR unresolved link to `error` |
0731742a XL |
15 | |
16 | /// wait, this doesn't have a doctest? | |
60c5eb7d | 17 | pub fn no_doctest() {} //~^ ERROR missing code example in this documentation |
0731742a XL |
18 | |
19 | /// wait, this *does* have a doctest? | |
20 | /// | |
21 | /// ``` | |
22 | /// println!("sup"); | |
23 | /// ``` | |
60c5eb7d | 24 | fn private_doctest() {} //~^^^^^ ERROR documentation test in private item |
29967ef6 XL |
25 | |
26 | /// <unknown> | |
27 | //~^ ERROR unclosed HTML tag `unknown` | |
28 | //~^^ ERROR missing code example | |
29 | pub fn c() {} |