about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/unstable-opts-143930.rs
blob: 30c47f5b7e9e373099b6e4ec21b324487bdeffb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This test verifies that unstable options like `-Zcrate-attr` are respected when `--test` is
// passed.
//
// <https://github.com/rust-lang/rust/issues/143930>
//
// NOTE: If any of these command line arguments or features get stabilized, please replace with
// another unstable one.

//@ check-pass
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ compile-flags: --test -Zcrate-attr=feature(register_tool) -Zcrate-attr=register_tool(rapx)

#[rapx::tag]
fn f() {}