rust/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs

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

16 lines
226 B
Rust
Raw Normal View History

2018-02-20 19:30:29 +00:00
//@ compile-flags:--test
2023-11-20 18:50:25 +00:00
// https://github.com/rust-lang/rust/issues/48377
2018-02-20 19:30:29 +00:00
//! This is a doc comment
//!
//! ```rust
//! fn main() {}
//! ```
//!
//! With a trailing code fence
//! ```
/// Some foo function
pub fn foo() {}