rust/tests/rustdoc-ui/intra-doc/private.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
562 B
Rust
Raw Normal View History

//@ 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() {}
}