]>
Commit | Line | Data |
---|---|---|
8faf50e0 XL |
1 | #![crate_name = "foo"] |
2 | ||
3 | // @has foo/index.html '//*[@class="docblock-short"]/p' 'fooo' | |
4 | // @!has foo/index.html '//*[@class="docblock-short"]/p/h1' 'fooo' | |
5 | // @has foo/fn.foo.html '//h1[@id="fooo"]/a[@href="#fooo"]' 'fooo' | |
6 | ||
7 | /// # fooo | |
8 | /// | |
9 | /// foo | |
10 | pub fn foo() {} | |
11 | ||
12 | // @has foo/index.html '//*[@class="docblock-short"]/p' 'mooood' | |
13 | // @!has foo/index.html '//*[@class="docblock-short"]/p/h2' 'mooood' | |
14 | // @has foo/foo/index.html '//h2[@id="mooood"]/a[@href="#mooood"]' 'mooood' | |
15 | ||
16 | /// ## mooood | |
17 | /// | |
18 | /// foo mod | |
19 | pub mod foo {} | |
20 | ||
21 | // @has foo/index.html '//*[@class="docblock-short"]/p/a[@href=\ | |
22 | // "https://nougat.world"]/code' 'nougat' | |
23 | ||
24 | /// [`nougat`](https://nougat.world) | |
25 | pub struct Bar; |