2020-05-30 10:35:35 -05:00
|
|
|
//@ check-pass
|
|
|
|
//@ revisions: public private
|
|
|
|
//@ [private]compile-flags: --document-private-items
|
|
|
|
|
2021-04-04 15:23:08 -05:00
|
|
|
// make sure to update `rustdoc/intra-doc/private.rs` if you update this file
|
|
|
|
|
|
|
|
/// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
|
2020-07-11 12:39:02 -05:00
|
|
|
//~^ WARNING public documentation for `DocMe` links to private item `DontDocMe`
|
2021-04-04 15:23:08 -05:00
|
|
|
//~| WARNING public documentation for `DocMe` links to private item `DontDocMe::x`
|
2021-02-11 18:15:16 -06:00
|
|
|
//~| WARNING public documentation for `DocMe` links to private item `DontDocMe::f`
|
2020-05-30 10:35:35 -05:00
|
|
|
pub struct DocMe;
|
2021-04-04 15:23:08 -05:00
|
|
|
struct DontDocMe {
|
|
|
|
x: usize,
|
|
|
|
}
|
2021-02-11 18:15:16 -06:00
|
|
|
|
|
|
|
impl DontDocMe {
|
|
|
|
fn f() {}
|
|
|
|
}
|