about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/wrong-ast.rs
blob: be8f541758692cdfd399507ebe64711f071efb22 (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: "tests/rustdoc-ui/doctest" -> "$$DIR"
//@ normalize-stdout: "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() {}