]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-23744.rs
Rollup merge of #103415 - compiler-errors:tiny-perf-increase-on-diagnostic, r=TaKO8Ki
[rust.git] / src / test / 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() {}