]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/primitive.rs
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / rustdoc / primitive.rs
1 #![crate_name = "foo"]
2
3 #![feature(rustdoc_internals)]
4
5 // @has foo/index.html '//h2[@id="primitives"]' 'Primitive Types'
6 // @has foo/index.html '//a[@href="primitive.i32.html"]' 'i32'
7 // @has foo/index.html '//div[@class="sidebar-elems"]//li/a' 'Primitive Types'
8 // @has foo/index.html '//div[@class="sidebar-elems"]//li/a/@href' '#primitives'
9 // @has foo/primitive.i32.html '//a[@class="primitive"]' 'i32'
10 // @has foo/primitive.i32.html '//h1' 'Primitive Type i32'
11 // @has foo/primitive.i32.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'this is a test!'
12 // @has foo/index.html '//a/@href' '../foo/index.html'
13 // @!has foo/index.html '//span' '🔒'
14 #[doc(primitive = "i32")]
15 /// this is a test!
16 mod i32{}
17
18 // @has foo/primitive.bool.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'hello'
19 #[doc(primitive = "bool")]
20 /// hello
21 mod bool {}