]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/lint-group.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / rustdoc-ui / lint-group.rs
CommitLineData
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 14pub fn link_error() {} //~^^^^^ ERROR unresolved link to `error`
0731742a
XL
15
16/// wait, this doesn't have a doctest?
60c5eb7d 17pub 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 24fn private_doctest() {} //~^^^^^ ERROR documentation test in private item
29967ef6
XL
25
26/// <unknown>
27//~^ ERROR unclosed HTML tag `unknown`
28//~^^ ERROR missing code example
29pub fn c() {}