mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
19 lines
559 B
Rust
19 lines
559 B
Rust
// check-pass
|
|
// revisions: public private
|
|
// [private]compile-flags: --document-private-items
|
|
|
|
// make sure to update `rustdoc/intra-doc/private.rs` if you update this file
|
|
|
|
/// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
|
|
//~^ WARNING public documentation for `DocMe` links to private item `DontDocMe`
|
|
//~| WARNING public documentation for `DocMe` links to private item `DontDocMe::x`
|
|
//~| WARNING public documentation for `DocMe` links to private item `DontDocMe::f`
|
|
pub struct DocMe;
|
|
struct DontDocMe {
|
|
x: usize,
|
|
}
|
|
|
|
impl DontDocMe {
|
|
fn f() {}
|
|
}
|