rust/tests/ui/deprecation/derive_on_deprecated_forbidden.rs
2023-01-11 09:32:08 +00:00

10 lines
143 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
#![forbid(deprecated)]
#[deprecated = "oh no"]
#[derive(Default)]
struct X;
fn main() {}