os-rust/src/test/rustdoc/keyword.rs

23 lines
854 B
Rust
Raw Normal View History

2018-05-28 21:30:01 +02:00
#![crate_name = "foo"]
2018-06-03 00:45:49 +02:00
#![feature(doc_keyword)]
2018-05-28 21:30:01 +02:00
// @has foo/index.html '//h2[@id="keywords"]' 'Keywords'
// @has foo/index.html '//a[@href="keyword.match.html"]' 'match'
2021-05-03 21:47:32 +02:00
// @has foo/index.html '//div[@class="sidebar-elems"]//li/a' 'Keywords'
// @has foo/index.html '//div[@class="sidebar-elems"]//li/a/@href' '#keywords'
2018-05-28 21:30:01 +02:00
// @has foo/keyword.match.html '//a[@class="keyword"]' 'match'
2018-09-10 11:27:21 +02:00
// @has foo/keyword.match.html '//span[@class="in-band"]' 'Keyword match'
2018-05-28 21:30:01 +02:00
// @has foo/keyword.match.html '//section[@id="main"]//div[@class="docblock"]//p' 'this is a test!'
2019-01-31 15:42:45 +01:00
// @has foo/index.html '//a/@href' '../foo/index.html'
2018-06-03 00:48:17 +02:00
// @!has foo/foo/index.html
// @!has-dir foo/foo
2018-05-28 21:30:01 +02:00
#[doc(keyword = "match")]
/// this is a test!
mod foo{}
// @has foo/keyword.foo.html '//section[@id="main"]//div[@class="docblock"]//p' 'hello'
#[doc(keyword = "foo")]
/// hello
mod bar {}