/src/test/rustdoc/short-docblock.rs
https://gitlab.com/rust-lang/rust · Rust · 25 lines · 4 code · 6 blank · 15 comment · 0 complexity · a8512e3c945d962bb0ca8195cc2f86de MD5 · raw file
- #![crate_name = "foo"]
- // @has foo/index.html '//*[@class="item-right docblock-short"]/p' 'fooo'
- // @!has foo/index.html '//*[@class="item-right docblock-short"]/p/h1' 'fooo'
- // @has foo/fn.foo.html '//h2[@id="fooo"]/a[@href="#fooo"]' 'fooo'
- /// # fooo
- ///
- /// foo
- pub fn foo() {}
- // @has foo/index.html '//*[@class="item-right docblock-short"]/p' 'mooood'
- // @!has foo/index.html '//*[@class="item-right docblock-short"]/p/h2' 'mooood'
- // @has foo/foo/index.html '//h3[@id="mooood"]/a[@href="#mooood"]' 'mooood'
- /// ## mooood
- ///
- /// foo mod
- pub mod foo {}
- // @has foo/index.html '//*[@class="item-right docblock-short"]/p/a[@href=\
- // "https://nougat.world"]/code' 'nougat'
- /// [`nougat`](https://nougat.world)
- pub struct Bar;