2025-03-04 22:03:28 +00:00
|
|
|
#[prelude_import]
|
|
|
|
use ::std::prelude::rust_2015::*;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate std;
|
|
|
|
//@ compile-flags: -Zunpretty=hir
|
|
|
|
//@ check-pass
|
2025-04-16 08:45:03 +00:00
|
|
|
//@ edition: 2015
|
2025-03-04 22:03:28 +00:00
|
|
|
|
2025-03-05 15:20:16 +00:00
|
|
|
#[attr = Deprecation {deprecation: Deprecation {since: Unspecified}}]
|
2025-03-04 22:03:28 +00:00
|
|
|
struct PlainDeprecated;
|
|
|
|
|
2025-03-05 15:20:16 +00:00
|
|
|
#[attr = Deprecation {deprecation: Deprecation {since: Unspecified, note:
|
|
|
|
"here's why this is deprecated"}}]
|
2025-03-04 22:03:28 +00:00
|
|
|
struct DirectNote;
|
|
|
|
|
2025-03-05 15:20:16 +00:00
|
|
|
#[attr = Deprecation {deprecation: Deprecation {since: Unspecified, note:
|
|
|
|
"here's why this is deprecated"}}]
|
2025-03-04 22:03:28 +00:00
|
|
|
struct ExplicitNote;
|
|
|
|
|
2025-03-05 15:20:16 +00:00
|
|
|
#[attr = Deprecation {deprecation: Deprecation {since: NonStandard("1.2.3"),
|
|
|
|
note: "here's why this is deprecated"}}]
|
2025-03-04 22:03:28 +00:00
|
|
|
struct SinceAndNote;
|
|
|
|
|
2025-03-05 15:20:16 +00:00
|
|
|
#[attr = Deprecation {deprecation: Deprecation {since: NonStandard("1.2.3"),
|
|
|
|
note: "here's why this is deprecated"}}]
|
2025-03-04 22:03:28 +00:00
|
|
|
struct FlippedOrder;
|