diff options
Diffstat (limited to 'src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs')
-rw-r--r-- | src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs b/src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs new file mode 100644 index 000000000..5e1d08dd9 --- /dev/null +++ b/src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs @@ -0,0 +1,12 @@ +// This test just shows that a crate-level `#![deprecated]` does not +// signal a warning or error. (This file sits on its own because a +// crate-level `#![deprecated]` causes all that crate's item +// definitions to be deprecated, which is a pain to work with.) +// +// (For non-crate-level cases, see issue-43106-gating-of-builtin-attrs.rs) + +// check-pass + +#![deprecated] + +fn main() {} |