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

17 lines
643 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'
2019-07-25 14:29:05 +02:00
// @has foo/index.html '//div[@class="block items"]//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{}