about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/merged-ignore-no_run.rs
blob: f92bea74bfef490a9e0a53a8311bc975a8522b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ edition: 2024
//@ 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"
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
//@ check-pass

/// ```ignore (test)
/// let x = 12;
/// ```
pub fn ignored() {}

/// ```no_run
/// panic!("blob");
/// ```
pub fn no_run() {}