]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/keyword.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / rustdoc / keyword.rs
CommitLineData
94b46f34
XL
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'
416331ca 7// @has foo/index.html '//div[@class="block items"]//a/@href' '#keywords'
94b46f34 8// @has foo/keyword.match.html '//a[@class="keyword"]' 'match'
0bf4aa26 9// @has foo/keyword.match.html '//span[@class="in-band"]' 'Keyword match'
94b46f34 10// @has foo/keyword.match.html '//section[@id="main"]//div[@class="docblock"]//p' 'this is a test!'
9fa01778 11// @has foo/index.html '//a/@href' '../foo/index.html'
94b46f34
XL
12// @!has foo/foo/index.html
13// @!has-dir foo/foo
14#[doc(keyword = "match")]
15/// this is a test!
16mod foo{}