-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
```should_panic, ```should_fail, and ```rust,should_fail all work fine.
Test case: Run rustdoc as rustdoc --test test.rs, where test.rs contains
#![crate_type = "bin"]
#![crate_name = "shouldpanic"]
/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
///
/// ```should_panic
/// fn main() { panic!("fee"); }
/// ```
///
/// ```should_fail
/// fn main() { panic!("fi"); }
/// ```
///
/// ```rust,should_fail
/// fn main() { panic!("fo"); }
/// ```
///
/// ```rust,should_panic
/// fn main() { panic!("fum"); }
/// ```
fn main() {
// We're actually just fine, thank you. :)
}Metadata
Metadata
Assignees
Labels
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.