]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-23744.rs
Auto merge of #107778 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / rustdoc / issue-23744.rs
1 // compile-flags:--test
2
3 /// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
4 ///
5 /// ```should_panic
6 /// fn main() { panic!("fee"); }
7 /// ```
8 ///
9 /// ```rust,should_panic
10 /// fn main() { panic!("fum"); }
11 /// ```
12 pub fn foo() {}