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

16 lines
226 B
Rust
Raw Normal View History

//@ compile-flags:--test
2018-02-20 19:30:29 +00:00
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() {}