]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/coverage/private.rs
Rollup merge of #93840 - yaahc:termination-stabilization-celebration-station, r=josht...
[rust.git] / src / test / rustdoc-ui / coverage / private.rs
1 // compile-flags:-Z unstable-options --show-coverage --document-private-items
2 // check-pass
3
4 #![allow(unused)]
5
6 //! when `--document-private-items` is passed, nothing is safe. everything must have docs or your
7 //! score will suffer the consequences
8
9 mod this_mod {
10     fn private_fn() {}
11 }
12
13 /// See, our public items have docs!
14 pub struct SomeStruct {
15     /// Look, all perfectly documented!
16     pub field: usize,
17     other: usize,
18 }
19
20 /// Nothing shady going on here. Just a bunch of well-documented code. (cough)
21 pub fn public_fn() {}