]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/doc-cfg-implicit.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / rustdoc / doc-cfg-implicit.rs
CommitLineData
c295e0f8
XL
1#![crate_name = "funambulism"]
2#![feature(doc_auto_cfg, doc_cfg)]
3
4// @has 'funambulism/struct.Disorbed.html'
5// @count - '//*[@class="stab portability"]' 1
6// @matches - '//*[@class="stab portability"]' 'crate feature disorbed'
7// compile-flags:--cfg feature="disorbed"
8#[cfg(feature = "disorbed")]
9pub struct Disorbed;
10
11// @has 'funambulism/struct.Aesthesia.html'
12// @count - '//*[@class="stab portability"]' 1
13// @matches - '//*[@class="stab portability"]' 'crate feature aesthesia'
14// compile-flags:--cfg feature="aesthesia"
15#[doc(cfg(feature = "aesthesia"))]
16pub struct Aesthesia;
17
18// @has 'funambulism/struct.Pliothermic.html'
19// @count - '//*[@class="stab portability"]' 1
20// @matches - '//*[@class="stab portability"]' 'crate feature pliothermic'
21// compile-flags:--cfg feature="epopoeist"
22#[cfg(feature = "epopoeist")]
23#[doc(cfg(feature = "pliothermic"))]
24pub struct Pliothermic;
25
26// @has 'funambulism/struct.Simillimum.html'
27// @count - '//*[@class="stab portability"]' 0
28// compile-flags:--cfg feature="simillimum"
29#[cfg(feature = "simillimum")]
30#[doc(cfg(all()))]
31pub struct Simillimum;