]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/doc-cfg-hide.rs
Rollup merge of #106072 - eopb:dyn-derive, r=estebank
[rust.git] / tests / rustdoc / doc-cfg-hide.rs
1 #![crate_name = "oud"]
2 #![feature(doc_auto_cfg, doc_cfg, doc_cfg_hide)]
3
4 #![doc(cfg_hide(feature = "solecism"))]
5
6 // @has 'oud/struct.Solecism.html'
7 // @count   - '//*[@class="stab portability"]' 0
8 // compile-flags:--cfg feature="solecism"
9 #[cfg(feature = "solecism")]
10 pub struct Solecism;
11
12 // @has 'oud/struct.Scribacious.html'
13 // @count   - '//*[@class="stab portability"]' 1
14 // @matches - '//*[@class="stab portability"]' 'crate feature solecism'
15 #[cfg(feature = "solecism")]
16 #[doc(cfg(feature = "solecism"))]
17 pub struct Scribacious;
18
19 // @has 'oud/struct.Hyperdulia.html'
20 // @count   - '//*[@class="stab portability"]' 1
21 // @matches - '//*[@class="stab portability"]' 'crate feature hyperdulia'
22 // compile-flags:--cfg feature="hyperdulia"
23 #[cfg(feature = "solecism")]
24 #[cfg(feature = "hyperdulia")]
25 pub struct Hyperdulia;
26
27 // @has 'oud/struct.Oystercatcher.html'
28 // @count   - '//*[@class="stab portability"]' 1
29 // @matches - '//*[@class="stab portability"]' 'crate feature oystercatcher only'
30 // compile-flags:--cfg feature="oystercatcher"
31 #[cfg(all(feature = "solecism", feature = "oystercatcher"))]
32 pub struct Oystercatcher;