]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/intra-doc/private.rs
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / test / rustdoc / intra-doc / private.rs
1 #![crate_name = "private"]
2 // compile-flags: --document-private-items
3
4 // make sure to update `rustdoc-ui/intra-doc/private.rs` if you update this file
5
6 /// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
7 // @has private/struct.DocMe.html '//*a[@href="struct.DontDocMe.html"]' 'DontDocMe'
8 // @has private/struct.DocMe.html '//*a[@href="struct.DontDocMe.html#method.f"]' 'DontDocMe::f'
9 // @has private/struct.DocMe.html '//*a[@href="struct.DontDocMe.html#structfield.x"]' 'DontDocMe::x'
10 pub struct DocMe;
11 struct DontDocMe {
12     x: usize,
13 }
14
15 impl DontDocMe {
16     fn f() {}
17 }