mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
13 lines
384 B
Rust
13 lines
384 B
Rust
// 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() {}
|