about summary refs log tree commit diff
path: root/tests/ui/feature-gates/issue-43106-gating-of-deprecated.rs
blob: 61cb162e03015a0304a11a753aaae58d352b5221 (plain)
1
2
3
4
5
6
7
8
9
10
11
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() {}