]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/doc-cfg-traits.rs
1 #![crate_name = "myrmecophagous"]
2 #![feature(doc_cfg, associated_type_defaults)]
4 // @has 'myrmecophagous/index.html'
5 // @count - '//*[@class="stab portability"]' 2
6 // @matches - '//*[@class="stab portability"]' '^jurisconsult$'
7 // @matches - '//*[@class="stab portability"]' '^quarter$'
11 // @has 'myrmecophagous/trait.Vortoscope.html'
12 // @count - '//*[@class="stab portability"]' 6
13 // @matches - '//*[@class="stab portability"]' 'crate feature zibib'
14 // @matches - '//*[@class="stab portability"]' 'crate feature poriform'
15 // @matches - '//*[@class="stab portability"]' 'crate feature ethopoeia'
16 // @matches - '//*[@class="stab portability"]' 'crate feature lea'
17 // @matches - '//*[@class="stab portability"]' 'crate feature unit'
18 // @matches - '//*[@class="stab portability"]' 'crate feature quarter'
19 pub trait Vortoscope
{
22 #[doc(cfg(feature = "zibib"))]
25 const YAHRZEIT
: () = ();
27 #[doc(cfg(feature = "poriform"))]
28 const PORIFORM
: () = ();
32 #[doc(cfg(feature = "ethopoeia"))]
36 #[doc(cfg(feature = "lea"))]
37 impl<T
: Lea
> Vortoscope
for T {}
39 #[doc(cfg(feature = "unit"))]
40 impl Vortoscope
for () {}
42 // @has 'myrmecophagous/trait.Jurisconsult.html'
43 // @count - '//*[@class="stab portability"]' 7
44 // @matches - '//*[@class="stab portability"]' 'crate feature jurisconsult'
45 // @matches - '//*[@class="stab portability"]' 'crate feature lithomancy'
46 // @matches - '//*[@class="stab portability"]' 'crate feature boodle'
47 // @matches - '//*[@class="stab portability"]' 'crate feature mistetch'
48 // @matches - '//*[@class="stab portability"]' 'crate feature lea'
49 // @matches - '//*[@class="stab portability"]' 'crate feature unit'
50 // @matches - '//*[@class="stab portability"]' 'crate feature quarter'
51 #[doc(cfg(feature = "jurisconsult"))]
52 pub trait Jurisconsult
{
55 #[doc(cfg(feature = "lithomancy"))]
58 const UNIFILAR
: () = ();
60 #[doc(cfg(feature = "boodle"))]
61 const BOODLE
: () = ();
65 #[doc(cfg(feature = "mistetch"))]
69 #[doc(cfg(feature = "lea"))]
70 impl<T
: Lea
> Jurisconsult
for T {}
72 #[doc(cfg(feature = "unit"))]
73 impl Jurisconsult
for () {}
75 // @has 'myrmecophagous/struct.Ultimogeniture.html'
76 // @count - '//*[@class="stab portability"]' 8
78 // @matches - '//*[@class="stab portability"]' 'crate feature zibib'
79 // @matches - '//*[@class="stab portability"]' 'crate feature poriform'
80 // @matches - '//*[@class="stab portability"]' 'crate feature ethopoeia'
82 // @matches - '//*[@class="stab portability"]' 'crate feature jurisconsult'
83 // @matches - '//*[@class="stab portability"]' 'crate feature lithomancy'
84 // @matches - '//*[@class="stab portability"]' 'crate feature boodle'
85 // @matches - '//*[@class="stab portability"]' 'crate feature mistetch'
87 // @matches - '//*[@class="stab portability"]' 'crate feature copy'
89 pub struct Ultimogeniture
;
91 impl Vortoscope
for Ultimogeniture {}
93 #[doc(cfg(feature = "jurisconsult"))]
94 impl Jurisconsult
for Ultimogeniture {}
96 #[doc(cfg(feature = "copy"))]
97 impl Copy
for Ultimogeniture {}
99 // @has 'myrmecophagous/struct.Quarter.html'
100 // @count - '//*[@class="stab portability"]' 9
101 // @matches - '//*[@class="stab portability"]' 'crate feature quarter'
103 // @matches - '//*[@class="stab portability"]' 'crate feature zibib'
104 // @matches - '//*[@class="stab portability"]' 'crate feature poriform'
105 // @matches - '//*[@class="stab portability"]' 'crate feature ethopoeia'
107 // @matches - '//*[@class="stab portability"]' 'crate feature jurisconsult'
108 // @matches - '//*[@class="stab portability"]' 'crate feature lithomancy'
109 // @matches - '//*[@class="stab portability"]' 'crate feature boodle'
110 // @matches - '//*[@class="stab portability"]' 'crate feature mistetch'
112 // @matches - '//*[@class="stab portability"]' 'crate feature copy'
113 #[doc(cfg(feature = "quarter"))]
117 #[doc(cfg(feature = "quarter"))]
118 impl Vortoscope
for Quarter {}
120 #[doc(cfg(all(feature = "jurisconsult", feature = "quarter")))]
121 impl Jurisconsult
for Quarter {}
123 #[doc(cfg(all(feature = "copy", feature = "quarter")))]
124 impl Copy
for Quarter {}