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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
319 B
Rust
Raw Normal View History

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