]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-deprecated.rs
1 // This test just shows that a crate-level `#![deprecated]` does not
2 // signal a warning or error. (This file sits on its own because a
3 // crate-level `#![deprecated]` causes all that crate's item
4 // definitions to be deprecated, which is a pain to work with.)
5 //
6 // (For non-crate-level cases, see issue-43106-gating-of-builtin-attrs.rs)
7
8 // check-pass
9
10 #![deprecated]
11
12 fn main() {}