blob: dae86fbfc59a19ea803b3fcd7c2386086b374d66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//@ compile-flags:--test --test-args=--test-threads=1
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ normalize-stdout-test ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
//@ failure-status: 101
/// ```
/// /* plop
/// ```
pub fn one() {}
/// ```
/// } mod __doctest_1 { fn main() {
/// ```
pub fn two() {}
/// ```should_panic
/// panic!()
/// ```
pub fn three() {}
|