]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/short-docblock-codeblock.rs
Rollup merge of #69194 - Centril:assoc-extern-fuse, r=petrochenkov
[rust.git] / src / test / rustdoc / short-docblock-codeblock.rs
1 #![crate_name = "foo"]
2
3 // @has foo/index.html '//*[@class="module-item"]//td[@class="docblock-short"]' ""
4 // @!has foo/index.html '//*[@id="module-item"]//td[@class="docblock-short"]' "Some text."
5 // @!has foo/index.html '//*[@id="module-item"]//td[@class="docblock-short"]' "let x = 12;"
6
7 /// ```
8 /// let x = 12;
9 /// ```
10 ///
11 /// Some text.
12 pub fn foo() {}