about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs
blob: 0ad3b2aead4813ef7a31bd3a5c41b1d280c25620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[doc(keyword = "match")] //~ ERROR: `#[doc(keyword)]` is meant for internal use only
/// wonderful
mod foo {}

#[doc(attribute = "repr")] //~ ERROR: `#[doc(attribute)]` is meant for internal use only
/// wonderful
mod foo2 {}

trait Mine {}

#[doc(fake_variadic)]  //~ ERROR: `#[doc(fake_variadic)]` is meant for internal use only
impl<T> Mine for (T,) {}

#[doc(search_unbox)]  //~ ERROR: `#[doc(search_unbox)]` is meant for internal use only
struct Wrap<T> (T);

fn main() {}