blob: 92286b33dcfb357252ba3fc1594ed16d8052d4a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//@ 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"
//@ failure-status: 101
/// ```
/// /* plop
/// ```
pub fn one() {}
/// ```
/// } mod __doctest_1 { fn main() {
/// ```
pub fn two() {}
/// ```should_panic
/// panic!()
/// ```
pub fn three() {}
|