]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/short-docblock-codeblock.rs
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / test / rustdoc / short-docblock-codeblock.rs
1 #![crate_name = "foo"]
2
3 // @has foo/index.html '//*[@class="item-right docblock-short"]' ""
4 // @!has foo/index.html '//*[@class="item-right docblock-short"]' "Some text."
5 // @!has foo/index.html '//*[@class="item-right docblock-short"]' "let x = 12;"
6
7 /// ```
8 /// let x = 12;
9 /// ```
10 ///
11 /// Some text.
12 pub fn foo() {}