]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/lint-group.rs
Delay span bug when failing to normalize negative coherence impl subject due to other...
[rust.git] / src / test / rustdoc-ui / lint-group.rs
1 //! Documenting the kinds of lints emitted by rustdoc.
2 //!
3 //! ```
4 //! println!("sup");
5 //! ```
6
7 #![deny(rustdoc::all)]
8
9 /// what up, let's make an [error]
10 ///
11 /// ```
12 /// println!("sup");
13 /// ```
14 pub fn link_error() {} //~^^^^^ ERROR unresolved link to `error`
15
16 /// wait, this doesn't have a doctest?
17 pub fn no_doctest() {} //~^ ERROR missing code example in this documentation
18
19 /// wait, this *does* have a doctest?
20 ///
21 /// ```
22 /// println!("sup");
23 /// ```
24 fn private_doctest() {} //~^^^^^ ERROR documentation test in private item
25
26 /// <unknown>
27 //~^ ERROR unclosed HTML tag `unknown`
28 //~^^ ERROR missing code example
29 pub fn c() {}