diff options
Diffstat (limited to 'tests/ui/lint/auxiliary/stability_cfg2.rs')
-rw-r--r-- | tests/ui/lint/auxiliary/stability_cfg2.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/lint/auxiliary/stability_cfg2.rs b/tests/ui/lint/auxiliary/stability_cfg2.rs new file mode 100644 index 000000000..c995038e5 --- /dev/null +++ b/tests/ui/lint/auxiliary/stability_cfg2.rs @@ -0,0 +1,5 @@ +// compile-flags:--cfg foo + +#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "none"))] +#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))] +#![feature(staged_api)] |