]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/keyword.rs
Rollup merge of #69583 - LeSeulArtichaut:ice-69378, r=Centril
[rust.git] / src / test / rustdoc / keyword.rs
1 #![crate_name = "foo"]
2
3 #![feature(doc_keyword)]
4
5 // @has foo/index.html '//h2[@id="keywords"]' 'Keywords'
6 // @has foo/index.html '//a[@href="keyword.match.html"]' 'match'
7 // @has foo/index.html '//div[@class="block items"]//a/@href' '#keywords'
8 // @has foo/keyword.match.html '//a[@class="keyword"]' 'match'
9 // @has foo/keyword.match.html '//span[@class="in-band"]' 'Keyword match'
10 // @has foo/keyword.match.html '//section[@id="main"]//div[@class="docblock"]//p' 'this is a test!'
11 // @has foo/index.html '//a/@href' '../foo/index.html'
12 // @!has foo/foo/index.html
13 // @!has-dir foo/foo
14 #[doc(keyword = "match")]
15 /// this is a test!
16 mod foo{}