]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/intra-doc/private.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / rustdoc / intra-doc / private.rs
1 // compile-flags: --document-private-items
2
3 // make sure to update `rustdoc-ui/intra-doc/private.rs` if you update this file
4
5 #![allow(rustdoc::private_intra_doc_links)]
6
7 #![crate_name = "private"]
8
9 /// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
10 // @has private/struct.DocMe.html '//*a[@href="struct.DontDocMe.html"]' 'DontDocMe'
11 // @has private/struct.DocMe.html '//*a[@href="struct.DontDocMe.html#method.f"]' 'DontDocMe::f'
12 // @has private/struct.DocMe.html '//*a[@href="struct.DontDocMe.html#structfield.x"]' 'DontDocMe::x'
13 pub struct DocMe;
14 struct DontDocMe {
15     x: usize,
16 }
17
18 impl DontDocMe {
19     fn f() {}
20 }