2 #![feature(rustdoc_internals)]
4 // @matches 'foo/index.html' '//h1' 'Crate foo'
5 // @matches 'foo/index.html' '//h2[@class="location"]' 'Crate foo'
7 // @matches 'foo/foo_mod/index.html' '//h1' 'Module foo::foo_mod'
8 // @matches 'foo/foo_mod/index.html' '//h2[@class="location"]' 'Module foo_mod'
14 // @matches 'foo/fn.foo_ffn.html' '//h1' 'Function foo::foo_ffn'
18 // @matches 'foo/fn.foo_fn.html' '//h1' 'Function foo::foo_fn'
21 // @matches 'foo/trait.FooTrait.html' '//h1' 'Trait foo::FooTrait'
22 // @matches 'foo/trait.FooTrait.html' '//h2[@class="location"]' 'FooTrait'
25 // @matches 'foo/struct.FooStruct.html' '//h1' 'Struct foo::FooStruct'
26 // @matches 'foo/struct.FooStruct.html' '//h2[@class="location"]' 'FooStruct'
29 // @matches 'foo/enum.FooEnum.html' '//h1' 'Enum foo::FooEnum'
30 // @matches 'foo/enum.FooEnum.html' '//h2[@class="location"]' 'FooEnum'
33 // @matches 'foo/type.FooType.html' '//h1' 'Type Definition foo::FooType'
34 // @matches 'foo/type.FooType.html' '//h2[@class="location"]' 'FooType'
35 pub type FooType = FooStruct;
37 // @matches 'foo/macro.foo_macro.html' '//h1' 'Macro foo::foo_macro'
39 macro_rules! foo_macro {
43 // @matches 'foo/primitive.bool.html' '//h1' 'Primitive Type bool'
44 #[doc(primitive = "bool")]
47 // @matches 'foo/static.FOO_STATIC.html' '//h1' 'Static foo::FOO_STATIC'
48 pub static FOO_STATIC: FooStruct = FooStruct;
51 // @matches 'foo/static.FOO_FSTATIC.html' '//h1' 'Static foo::FOO_FSTATIC'
52 pub static FOO_FSTATIC: FooStruct;
55 // @matches 'foo/constant.FOO_CONSTANT.html' '//h1' 'Constant foo::FOO_CONSTANT'
56 pub const FOO_CONSTANT: FooStruct = FooStruct;