rust/tests/ui/feature-gates/issue-43106-gating-of-deprecated.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
385 B
Rust
Raw Normal View History

// 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)
2019-06-12 15:18:32 +00:00
//@ check-pass
#![deprecated]
fn main() {}