2024-06-10 11:29:33 -05:00
|
|
|
//@ compile-flags:--test --test-args=--test-threads=1 -Zunstable-options --edition 2024
|
|
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
2024-07-12 04:26:25 -05:00
|
|
|
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
//@ normalize-stdout-test: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
2024-06-10 11:29:33 -05:00
|
|
|
//@ failure-status: 101
|
|
|
|
|
|
|
|
/// ```
|
|
|
|
/// /* plop
|
|
|
|
/// ```
|
|
|
|
pub fn one() {}
|
|
|
|
|
|
|
|
/// ```
|
|
|
|
/// } mod __doctest_1 { fn main() {
|
|
|
|
/// ```
|
|
|
|
pub fn two() {}
|
|
|
|
|
|
|
|
/// ```should_panic
|
|
|
|
/// panic!()
|
|
|
|
/// ```
|
|
|
|
pub fn three() {}
|