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

//@ revisions: normal crate_attr
//@ compile-flags: --test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@[crate_attr] check-pass
//@[crate_attr] compile-flags: -Zcrate-attr=feature(used_with_arg)

#[used(linker)]
//[normal]~^ ERROR `#[used(linker)]` is currently unstable
static REPRO: isize = 1;