rust/src/test/rustdoc/short-docblock-codeblock.rs

13 lines
358 B
Rust

#![crate_name = "foo"]
// @has foo/index.html '//*[@class="module-item"]//td[@class="docblock-short"]' ""
// @!has foo/index.html '//*[@id="module-item"]//td[@class="docblock-short"]' "Some text."
// @!has foo/index.html '//*[@id="module-item"]//td[@class="docblock-short"]' "let x = 12;"
/// ```
/// let x = 12;
/// ```
///
/// Some text.
pub fn foo() {}